Hi there!
I'm trying to install libapreq2 under my newly installed Mac OS X 10.5
on a MacBook Pro (Core Duo 2, SantaRosa), but something must be wrong
in what I'm doing as Apache refuses to launch as soon as I add the
following to the httpd.conf file:
LoadModule apreq_module libexec/apache2/mod_apreq2.so
Below is the message I get in the console:
httpd: Syntax error on line 509 of /private/etc/apache2/httpd.conf:
Cannot load /usr/libexec/apache2/mod_apreq2.so into server: dlopen(/
usr/libexec/apache2/mod_apreq2.so, 10): no suitable image found. Did
find:\n\t/usr/libexec/apache2/mod_apreq2.so: mach-o, but wrong
architecture
FYI, I'm using the default softwares provided with Leopard: Apache
2.2.6 & mod_perl 2.0.2 & Perl 5.8.8.
What I'm typing to install libapreq2:
% perl Makefile.PL --with-apache2-apxs=/usr/sbin/apxs
% make
% sudo make install
I've noticed the following message while compiling (make):
ld: warning in /Users/laurent/Downloads/libapreq2-2.08/library/.libs/
libapreq2.dylib, file is not of required architecture
If it can help, here is what I get when I apply the "file" command on
this .dylib file:
/Users/laurent/Downloads/libapreq2-2.08/library/.libs/libapreq2.dylib:
Mach-O dynamically linked shared library i386
After having installed (sudo make install), here is what I get when I
apply the "file" command on the newly created and installed /usr/
libexec/apache2/mod_apreq2.so file:
/usr/libexec/apache2/mod_apreq2.so: Mach-O bundle i386
Is this normal? Below is what I get for example for the mod_perl.so
file:
mod_perl.so: Mach-O universal binary with 4 architectures
mod_perl.so (for architecture ppc7400): Mach-O bundle ppc
mod_perl.so (for architecture ppc64): Mach-O 64-bit bundle ppc64
mod_perl.so (for architecture i386): Mach-O bundle i386
mod_perl.so (for architecture x86_64): Mach-O 64-bit bundle x86_64
Shouldn't I get the same for all .so file? Shouldn't mod_apreq2.so be
compiled as universal binary too?
Any idea? Thank you very much in advance!
--
Laurent, Nantes (FR) - http://blog.lmartin.fr
Apple MacBook Pro 15"
Nokia Internet Tablet N800
Palm Treo 650 (unlocked GSM)