mod_perl2 on Leopard
perl Makefile.PL MP_APXS=/usr/sbin/apxs make make test
doesn't work well. See below.
waiting 120 seconds for server to start: ..httpd: Syntax error on line 257 of /Users/danjou/local/src/mod_perl-2.0.3/t/conf/httpd.conf: Cannot load /Users/danjou/local/src/mod_perl-2.0.3/src/modules/perl/mod_perl.so into server: dlopen(/Users/danjou/local/src/mod_perl-2.0.3/src/modules/perl/mod_perl.so, 10): no suitable image found. Did find:\n\t/Users/danjou/local/src/mod_perl-2.0.3/src/modules/perl/mod_perl.so: no matching architecture in universal wrapper
- > http://www.google.co.jp/codesearch?hl=ja&lr=&q=%22no+matching+architecture+in+universal+wrapper%22 -> mmm... -> neither Intel Mac nor G5. Please let me know when you find the way to fix it :)
update (2007-11-21)
Related informations below. thx! I'll try later.
update (2008-01-04)
I tried again with
export ARCHFLAGS="-arch x86_64" export CFLAGS="-arch x86_64" perl Makefile.PL MP_APXS=/usr/sbin/apxs make make test
but got
Can't load '/Users/danjou/Downloads/mod_perl-2.0.3/blib/arch/auto/ModPerl/Const/Const.bundle' for module ModPerl::Const: dlopen(/Users/danjou/Downloads/mod_perl-2.0.3/blib/arch/auto/ModPerl/Const/Const.bundle, 9) : no suitable image found. Did find: /Users/danjou/Downloads/mod_perl-2.0.3/blib/arch/auto/ModPerl/Const/Const.bundle: mach-o, but wron g architecture at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/DynaLoader.pm line 230. at /Users/danjou/Downloads/mod_perl-2.0.3/blib/lib/Apache2/Const.pm line 18
... mmm