tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Fuller <>
Subject Re: mod_jk for OS X PPC
Date Tue, 30 Oct 2007 11:56:34 GMT

Richard Doust wrote:
> Hi.
> ...
> I upgraded my  
> Mac's OS on Saturday to OS X 10.5 (Leopard).
> ...
> When I install the resultant, Apache complains that it found  
> mod_jk mach-o, but it is for the wrong architecture.
> If anyone has already done this, I'd love to hear from you.

Hi Richard,

The problem is that Apache 2 on Mac OS 10.5 Leopard runs in 64-bit mode on
machines which are 64-bit capable (Mac Pros and MacBook Pros for sure). You
have to compile mod_jk to run on a 64-bit architecture, which would be
straightforward - except that for compatibility, Apple has left 32-bit mode
on all machines as default unless an application specifically invokes
64-bit. Hence the configure command when building mod_jk detects a 32-bit
architecture and has to be specifically instructed to use 64-bit.

At least that's my best understanding of it, it may be inaccurate! Anyway -
on to the solution (it worked for me anyway):

Go into the 'native'  folder of your mod_jk source and type the following:

make clean
./configure CFLAGS='-arch x86_64' APXSLDFLAGS='-arch x86_64'
sudo make install

(assuming you're not compiling as root, if you are, you won't need the sudo
at the end)

Hope that helps!

View this message in context:
Sent from the Tomcat - User mailing list archive at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message