> Hello, I am trying to install mod_perl on OS X Leopard. I searched
> around and tried the various suggestions that I found, but still get
> errors on 'make test' (see below). Incidentally, I do have the
> following environment variables set as suggested in an article I read.


This article?

http://use.perl.org/articles/07/11/09/2241222.shtml


> CFLAGS=-arch x86_64
> ARCHFLAGS=-arch x86_64
>
> I stupidly did a 'make install' anyway, which I am guessing
> obliterated any pre-installed mod_perl library if there was one.
>
> Thanks for any help.
> SH
>
> cd "src/modules/perl" && make
> make[1]: Nothing to be done for `all'.
> /usr/bin/perl -Iblib/arch -Iblib/lib \
> t/TEST -clean
> [warning] setting ulimit to allow core files
> ulimit -c unlimited; /usr/bin/perl /usr/src/mod_perl-2.0.3/t/TEST -clean
> APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT=
> APACHE_TEST_USER= APACHE_TEST_APXS= \
> /usr/bin/perl -Iblib/arch -Iblib/lib \
> t/TEST -bugreport -verbose=0
> [warning] setting ulimit to allow core files
> ulimit -c unlimited; /usr/bin/perl /usr/src/mod_perl-2.0.3/t/TEST -
> bugreport -verbose=0
> Can't load '/usr/src/mod_perl-2.0.3/blib/arch/auto/ModPerl/Const/
> Const.bundle' for module ModPerl::Const: dlopen(/usr/src/
> mod_perl-2.0.3/blib/arch/auto/ModPerl/Const/Const.bundle, 9): no
> suitable image found. Did find:
> /usr/src/mod_perl-2.0.3/blib/arch/auto/ModPerl/Const/Const.bundle:
> mach-o, but wrong architecture at /System/Library/Perl/5.8.8/darwin-
> thread-multi-2level/DynaLoader.pm line 230.
> at /usr/src/mod_perl-2.0.3/blib/lib/Apache2/Const.pm line 18
> Compilation failed in require at /usr/src/mod_perl-2.0.3/blib/lib/
> Apache2/Const.pm line 18.
> BEGIN failed--compilation aborted at /usr/src/mod_perl-2.0.3/blib/lib/
> Apache2/Const.pm line 18.
> Compilation failed in require at /usr/src/mod_perl-2.0.3/t/response/
> TestApache/subprocess.pm line 13.
> BEGIN failed--compilation aborted at /usr/src/mod_perl-2.0.3/t/
> response/TestApache/subprocess.pm line 13.
> Compilation failed in require at /usr/src/mod_perl-2.0.3/Apache-Test/
> lib/Apache/TestConfigPerl.pm line 617.
> Bareword "Apache2::Const::OK" not allowed while "strict subs" in use
> at /usr/src/mod_perl-2.0.3/t/response/TestDirective/perlmodule.pm line
> 24.
> Compilation failed in require at /usr/src/mod_perl-2.0.3/Apache-Test/
> lib/Apache/TestConfigPerl.pm line 617.
> Undefined subroutine &TestDirective:erlmodule::APACHE_TEST_CONFIGURE
> called at /usr/src/mod_perl-2.0.3/Apache-Test/lib/Apache/
> TestConfigPerl.pm line 621.
> Bareword "Apache2::Const::OK" not allowed while "strict subs" in use
> at /usr/src/mod_perl-2.0.3/t/response/TestDirective/perlrequire.pm
> line 26.
> Compilation failed in require at /usr/src/mod_perl-2.0.3/Apache-Test/
> lib/Apache/TestConfigPerl.pm line 617.
> Undefined subroutine
> &TestDirective:erlrequire::APACHE_TEST_CONFIGURE called at /usr/src/
> mod_perl-2.0.3/Apache-Test/lib/Apache/TestConfigPerl.pm line 621.
> /usr/sbin/httpd -d /usr/src/mod_perl-2.0.3/t -f /usr/src/
> mod_perl-2.0.3/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
> using Apache/2.2.6 (prefork MPM)
>
> waiting 120 seconds for server to start: .[Fri Nov 23 11:24:42 2007]
> [warn] Useless use of AllowOverride in line 891.
> [Fri Nov 23 11:24:42 2007] [info] 6 Apache2:: modules loaded
> [Fri Nov 23 11:24:42 2007] [info] 0 APR:: modules loaded
> [Fri Nov 23 11:24:42 2007] [info] base server + 29 vhosts ready to run
> tests
> [Fri Nov 23 11:24:42 2007] [error] Can't locate ApacheTest/
> PerlRequireTest.pm in @INC (@INC contains: /usr/src/mod_perl-2.0.3 /
> usr/src/mod_perl-2.0.3/t/lib /usr/src/mod_perl-2.0.3/Apache-Test/lib /
> usr/src/mod_perl-2.0.3/t/response /usr/src/mod_perl-2.0.3/t/protocol /
> usr/src/mod_perl-2.0.3/t/preconnection /usr/src/mod_perl-2.0.3/t/
> hooks /usr/src/mod_perl-2.0.3/t/filter /usr/src/mod_perl-2.0.3/t /usr/
> src/mod_perl-2.0.3/t/htdocs/testdirective/perlmodule-vh /usr/src/
> mod_perl-2.0.3/t/htdocs/testdirective/main /usr/src/mod_perl-2.0.3/
> blib/lib /usr/src/mod_perl-2.0.3/blib/arch /sw/lib/perl5 /sw/lib/perl5/
> darwin /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/
> Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /
> Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-
> thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /
> System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/
> Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1) at
> (eval 30) line 1.\n
> [Fri Nov 23 11:24:42 2007] [error] Can't load Perl file: ApacheTest/
> PerlRequireTest.pm for server localhost:8529, exiting...
> ..^C[warning]
> halting tests
> +--------------------------------------------------------+
> | Please file a bug report: http://perl.apache.org/bugs/ |
> +--------------------------------------------------------+
> make: *** [run_tests] Error 1
>
>
>
>