tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Building tomcat-connectors (mod_jk) on Mac OS X
Date Tue, 19 Aug 2014 21:45:23 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

All,

Does anyone know if it is possible to build mod_jk on Mac OS X given
the stock httpd that comes with the OS? I don't think httpd is
installed with a stock Mavericks, but my computer is old enough to
have been upgraded from a version of Mac OS that did include it initially.

When I get the source distro and unpack it, configure tells me:

$ ./configure
checking build system type... x86_64-apple-darwin13.3.0
checking host system type... x86_64-apple-darwin13.3.0
checking target system type... x86_64-apple-darwin13.3.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes

 [...]

checking for getaddrinfo... yes
checking for gethostbyname_r... no
checking for target platform... unix
no apache given
no netscape given
configure: error: Cannot find the WebServer

Okay, configure can't find httpd. Configure claims that --with-apxs
will default to looking in $PATH for apxs. Let's try something:

$ which apxs
/usr/sbin/apxs

Hmm. It's in the path. Weird configure did not find it. Oh, well:

$ ./configure --with-apxs=`which apxs`
checking build system type... x86_64-apple-darwin13.3.0
checking host system type... x86_64-apple-darwin13.3.0
checking target system type... x86_64-apple-darwin13.3.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for test... /bin/test
checking for grep... /usr/bin/grep
checking for echo... /bin/echo
checking for sed... /usr/bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
APRINCLUDEDIR is  -I/usr/include/apr-1 -I/usr/include/apr-1
building connector for "apache-2.0"
checking for gcc...
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc
checking for C compiler default output file name... configure: error:
C compiler cannot create executables

That's weird... this step works okay when I don't specify apxs.

Is this likely to be an artifact of an old httpd (and apxs) along with
a much more recent XCode (and command-line support)?

For those who build on Mac OS, what setups have you found that were
particularly convenient?

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJT88VwAAoJEBzwKT+lPKRYWo0P/iLRr0QrCtPP1tjhsxsPn4Vx
g8BJRelNK1RCIoq7YLdFrFtCwWr5X0vJBb+uT8B986RlThmMhQC5jiqOMS+LsOUw
/kNvHnb3d13sWp6NyhcwAq8E3RME0X2yx3gQcMhD4sRj0W9wPWp1iFeE5g9o9HWc
3pTvJYp6KIYGLPJi3OMD5saGbq5oHe5AWtY0HOFlKHZ3/9Z6/bfOuSao1Ic/i9R1
BUjJ14N44+hWXbg0NMgLEVFM9wacRtfURfebILQ4Z3KBTsVw7n9EFzNjzpWGXhUN
r2K+QDp+v+NBZIU557KzXzqqpJJdTeeCnk1dr8tJ40pbw6Gm4W2R17YZ83IoQmMB
KxFPUca9M2Gd16ALJE4WvGKaufDpfRm49zhx5kWCKOtq84kqM1AnqsKD3T9zAQda
1gXE+g6Q6IPthhmuCAxLiDjVsFqrOeiYqArjEZBPts526/VduJd6SlRmNTs1R3++
1GswlujLxOLtCFzmNWc7lFl3MNH82dsJvZTYSsd6sNyaa8GmYjQaTiovHL93pJGW
cbxQ86cKJI6XX/MkrowOSn0DLQY20faHzKGFo9LxGu/uUZp1CF5nsxShM/32ht90
BwP5Zm431bsnC1M4x+5UIrO2nJrbZLzuWDMPTkr7ZNveMieVFrVBzzPU9dAf4n2Y
1Wc8WszT28IbaCCkJqVt
=/z9t
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message