You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by "Alan D. Cabrera" <li...@toolazydogs.com> on 2011/07/14 19:28:25 UTC

Trying to get trafficserver running on mac os x

I noticed that the documentation seems to be 2x.  But if I try to compiled 2.0.1 I get:

g++ -DPACKAGE_NAME=\"Apache\ Traffic\ Server\" -DPACKAGE_TARNAME=\"trafficserver\" -DPACKAGE_VERSION=\"2.0.1\" -DPACKAGE_STRING=\"Apache\ Traffic\ Server\ 2.0.1\" -DPACKAGE_BUGREPORT=\"dev@trafficserver.apache.org\" -DPACKAGE=\"trafficserver\" -DVERSION=\"2.0.1\" -DHOST_OS=darwin -Ddarwin=1 -DBUILD_PERSON=\"acabrera\" -DBUILD_MACHINE=\"acabrera-mn.local\" -DUSE_DIAGS=1 -DMODULARIZED=1 -DNO_WEBUI=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSIZEOF_INT_P=8 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1 -D_REENTRANT=1 -DHAVE_LIBSSL=1 -DHAVE_KQUEUE=1 -DHAVE_POSIX_MEMALIGN=1 -DUSE_KQUEUE=1 -DHAVE_SYS_EVENT_H=1 -DHAVE_MACHINE_ENDIAN_H=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_NETINET_IP_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_SYS_SYSCTL_H=1 -DHAVE_ARPA_NAMESER_COMPAT_H=1 -DHAVE_EXECINFO_H=1 -DHAVE_NETDB_H=1 -DHAVE_REGEX_H=1 -DHAVE_CTYPE_H=1 -DHAVE_FLOAT_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_CPIO_H=1 -DHAVE_SYS_MOUNT_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SQLITE3_H=1 -DHTTP_CACHE=1 -DFIXME_NONMODULAR -DSPLIT_DNS -DNON_MODULAR -DHTTP_CACHE -I.  -I../../iocore/eventsystem -I../../iocore/cache -I../../iocore/aio -I../../iocore/utils -I../../iocore/cluster -I../../iocore/hostdb -I../../iocore/dns -I../../librecords -I../../libinktomi++ -I../../proxy -I../../proxy/hdrs -I../../proxy/mgmt2 -I../../proxy/mgmt2/preparse -I../../proxy/mgmt2/utils -I../../proxy/mgmt2/web2 -I/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers  -g -pipe -Wall -Werror -Wno-char-subscripts -Wno-write-strings -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof  -MT UnixNet.o -MD -MP -MF .deps/UnixNet.Tpo -c -o UnixNet.o UnixNet.cc
UnixNet.cc: In function ‘void initialize_eventfd(EThread*)’:
UnixNet.cc:141: error: aggregate ‘epoll_event ev’ has incomplete type and cannot be defined
UnixNet.cc:142: error: invalid application of ‘sizeof’ to incomplete type ‘epoll_event’ 
UnixNet.cc:144: error: ‘EPOLLIN’ was not declared in this scope
UnixNet.cc:144: error: ‘EPOLLET’ was not declared in this scope
UnixNet.cc:146: error: ‘struct PollDescriptor’ has no member named ‘epoll_fd’
UnixNet.cc:146: error: ‘EPOLL_CTL_ADD’ was not declared in this scope
UnixNet.cc:146: error: ‘epoll_ctl’ was not declared in this scope
make[2]: *** [UnixNet.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1


Re: Trying to get trafficserver running on mac os x

Posted by Leif Hedstrom <zw...@apache.org>.
On 07/14/2011 11:43 AM, Alan D. Cabrera wrote:
> O
>> As long as you configured it properly (./configure --with-user=traffic) and then do "sudo make install" it should work. But try it :).
> I also want the binaries et al to go into /opt/trafficserver.  What's the configure option for that?

Take a look at the output of ./configure --help. But, it would be 
--prefix=/opt/trafficserver .

--  leif


Re: Trying to get trafficserver running on mac os x

Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
On Jul 14, 2011, at 10:40 AM, Leif Hedstrom wrote:

> On 07/14/2011 11:39 AM, Alan D. Cabrera wrote:
>> On Jul 14, 2011, at 10:36 AM, Leif Hedstrom wrote:
>> 
>>> On 07/14/2011 11:35 AM, Alan D. Cabrera wrote:
>>>> Ok, because the docs refer to ./start_traffic_server and I cannot find that command in the 3.0.0 distribution.
>>> Yeah, those docs are wrong. Use trafficserver (no underscores) from the distro to stop / start it.
>> Cool.  I'd like to run this under a special userid, traffic.  When I run "make install" do I have to do any followup work?
> 
> As long as you configured it properly (./configure --with-user=traffic) and then do "sudo make install" it should work. But try it :).

I also want the binaries et al to go into /opt/trafficserver.  What's the configure option for that?


Regards,
Alan


Re: Trying to get trafficserver running on mac os x

Posted by Leif Hedstrom <zw...@apache.org>.
On 07/14/2011 11:39 AM, Alan D. Cabrera wrote:
> On Jul 14, 2011, at 10:36 AM, Leif Hedstrom wrote:
>
>> On 07/14/2011 11:35 AM, Alan D. Cabrera wrote:
>>> Ok, because the docs refer to ./start_traffic_server and I cannot find that command in the 3.0.0 distribution.
>> Yeah, those docs are wrong. Use trafficserver (no underscores) from the distro to stop / start it.
> Cool.  I'd like to run this under a special userid, traffic.  When I run "make install" do I have to do any followup work?

As long as you configured it properly (./configure --with-user=traffic) 
and then do "sudo make install" it should work. But try it :).

-- leif


Re: Trying to get trafficserver running on mac os x

Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
On Jul 14, 2011, at 10:36 AM, Leif Hedstrom wrote:

> On 07/14/2011 11:35 AM, Alan D. Cabrera wrote:
>> Ok, because the docs refer to ./start_traffic_server and I cannot find that command in the 3.0.0 distribution.
> 
> Yeah, those docs are wrong. Use trafficserver (no underscores) from the distro to stop / start it.

Cool.  I'd like to run this under a special userid, traffic.  When I run "make install" do I have to do any followup work?


Regards,
Alan


Re: Trying to get trafficserver running on mac os x

Posted by Leif Hedstrom <zw...@apache.org>.
On 07/14/2011 11:35 AM, Alan D. Cabrera wrote:
> Ok, because the docs refer to ./start_traffic_server and I cannot find that command in the 3.0.0 distribution.

Yeah, those docs are wrong. Use trafficserver (no underscores) from the 
distro to stop / start it.

-- Leif


Re: Trying to get trafficserver running on mac os x

Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
Ok, because the docs refer to ./start_traffic_server and I cannot find that command in the 3.0.0 distribution.


Regards,
Alan

On Jul 14, 2011, at 10:34 AM, Leif Hedstrom wrote:

> On 07/14/2011 11:28 AM, Alan D. Cabrera wrote:
>> I noticed that the documentation seems to be 2x.  But if I try to compiled 2.0.1 I get:
> 
> Get 3.0.0 (or trunk). I don't know if 2.0.1 ever worked on Mac. Eric updated the Confluence WIki with accurate build instructions a while ago.
> 
> -- Leif
> 


Re: Trying to get trafficserver running on mac os x

Posted by Leif Hedstrom <zw...@apache.org>.
On 07/14/2011 11:28 AM, Alan D. Cabrera wrote:
> I noticed that the documentation seems to be 2x.  But if I try to compiled 2.0.1 I get:

Get 3.0.0 (or trunk). I don't know if 2.0.1 ever worked on Mac. Eric 
updated the Confluence WIki with accurate build instructions a while ago.

-- Leif