Installing Tomcat Connector (mod_jk)
So last night I downloaded the latest version (1.2.26), built it, installed it, modified http.config to load it and ran the syntax check. apachectl said:
Cannot load /usr/libexec/apache2/mod_jk.so into server:
dlopen(/usr/libexec/apache2/mod_jk.so, 10): no suitable image found.
Did find:
/usr/libexec/apache2/mod_jk.so: mach-o, but wrong architecture
So I checked to see what the architecture of the file was. file said:
mod_jk.so: Mach-O bundle i386
So what's wrong with that? I checked a few other modules, and here's what file said about one of them:
mod_setenvif.so: Mach-O universal binary with 4 architectures
mod_setenvif.so (for architecture ppc7400): Mach-O bundle ppc
mod_setenvif.so (for architecture ppc64): Mach-O 64-bit bundle ppc64
mod_setenvif.so (for architecture i386): Mach-O bundle i386
mod_setenvif.so (for architecture x86_64): Mach-O 64-bit bundle x86_64
So I take it it's looking for x86_64? But why wouldn't the default architecture be the right one? I'm building it on the machine where I'm going to be using it. Not only that, but when I specify ./configure --with-apxs=/usr/sbin/apxs --with-arch-type x86_64 I get the same result.
Is there any way to build this thing, or can I get a binary somewhere?
MacBook Pro 17, Mac OS X (10.4.11), 4 GB RAM, 160 GB HD