Return-Path: Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 38640 invoked by uid 500); 25 Aug 2003 02:21:20 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 38624 invoked from network); 25 Aug 2003 02:21:20 -0000 Subject: Can't locate object method "new" via package "Apache::Request" From: K Old To: Mason Users Cc: ModPerl List Content-Type: text/plain Organization: Message-Id: <1061775768.5818.36.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 24 Aug 2003 21:42:49 -0400 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello everyone, I've put HTML::Mason on a few servers now and have had problems with Apache::Request and Apache::Test on two of them. My most recent is having the problem and I'm about to go crazy if I don't figure out why installs keep having problems. Here's my setup: RH 7.2, Apache 1.3.27, mod_perl 1.26, Perl 5.6.1 - all installed from RPM's. I did a "install HTML::Mason" from the CPAN command line and all the dependencies were downloaded and some didn't compile. The two that didn't are Apache::Test-1.03 and libapreq-1.2. So, for Apache::Test I proceed to "make clean" and then do: perl Makefile.PL make make test /usr/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -clean *** setting ulimit to allow core files ulimit -c unlimited; t/TEST -clean APACHE_USER= APXS= APACHE_PORT= APACHE_GROUP= APACHE= \ /usr/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -verbose=0 *** setting ulimit to allow core files ulimit -c unlimited; t/TEST -verbose=0 *** root mode: changing the fs ownership to 'nobody' (99:99) /usr/sbin/httpd -X -d /root/.cpan/build/Apache-Test-1.03/t -f /root/.cpan/build/Apache-Test-1.03/t/conf/httpd.conf -DAPACHE1 using Apache/1.3.27 waiting for server to start: . waiting for server to start: ok (waited 0 secs) server localhost.localdomain:8529 started ping.......ok request....FAILED tests 1, 5, 8-9 Failed 4/9 tests, 55.56% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- request.t 9 4 44.44% 1 5 8-9 *** server localhost.localdomain:8529 shutdown !!! error running tests (please examine t/logs/error_log) make: *** [run_tests] Error 1 [Sun Aug 24 21:16:49 2003] [info] Created shared memory segment #4259853 [Sun Aug 24 21:16:49 2003] [info] allocated semaphore #3112976 [Sun Aug 24 21:16:50 2003] [info] Created shared memory segment #4358157 [Sun Aug 24 21:16:50 2003] [info] allocated semaphore #3178512 [Sun Aug 24 21:16:50 2003] [info] created shared memory segment #4423695 I then did a make install and it installed the files, but they are broken. At any rate, I tried libapreq with the following: make clean perl Makefile.PL -httpd /usr/sbin/httpd generating script t/TEST Checking if your kit is complete... Looks good Writing Makefile for libapreq mkdir ../blib mkdir ../blib/arch mkdir ../blib/arch/auto mkdir ../blib/arch/auto/libapreq Warning: -L../blib/arch/auto/libapreq changed to -L/root/.cpan/build/libapreq-1.2/Request/../blib/arch/auto/libapreq Writing Makefile for Apache::Request Warning: -L../blib/arch/auto/libapreq changed to -L/root/.cpan/build/libapreq-1.2/Cookie/../blib/arch/auto/libapreq Writing Makefile for Apache::Cookie Writing Makefile for libapreq make make test make[1]: Entering directory `/root/.cpan/build/libapreq-1.2/c' make[1]: Leaving directory `/root/.cpan/build/libapreq-1.2/c' make[1]: Entering directory `/root/.cpan/build/libapreq-1.2/Request' make[1]: Leaving directory `/root/.cpan/build/libapreq-1.2/Request' make[1]: Entering directory `/root/.cpan/build/libapreq-1.2/Cookie' make[1]: Leaving directory `/root/.cpan/build/libapreq-1.2/Cookie' /usr/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -clean *** setting ulimit to allow core files ulimit -c unlimited; t/TEST -clean APACHE_USER= APXS= APACHE_PORT= APACHE_GROUP= APACHE= \ /usr/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -verbose=0 *** setting ulimit to allow core files ulimit -c unlimited; t/TEST -verbose=0 *** root mode: changing the fs ownership to 'nobody' (99:99) /usr/sbin/httpd -X -d /root/.cpan/build/libapreq-1.2/t -f /root/.cpan/build/libapreq-1.2/t/conf/httpd.conf -DAPACHE1 using Apache/1.3.27 waiting for server to start: . waiting for server to start: ok (waited 0 secs) server localhost.localdomain:8529 started apreq/big_input....FAILED tests 1-21 Failed 21/21 tests, 0.00% okay apreq/cookie.......FAILED test 1 Failed 1/1 tests, 0.00% okay apreq/inherit......FAILED test 1 Failed 1/1 tests, 0.00% okay apreq/request......FAILED tests 1-2 Failed 2/2 tests, 0.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- apreq/big_input.t 21 21 100.00% 1-21 apreq/cookie.t 1 1 100.00% 1 apreq/inherit.t 1 1 100.00% 1 apreq/request.t 2 2 100.00% 1-2 *** server localhost.localdomain:8529 shutdown !!! error running tests (please examine t/logs/error_log) make: *** [run_tests] Error 1 [Sun Aug 24 21:21:59 2003] [info] Created shared memory segment #4489230 [Sun Aug 24 21:21:59 2003] [info] allocated semaphore #3244050 [Sun Aug 24 21:22:00 2003] [info] Created shared memory segment #4587534 [Sun Aug 24 21:22:00 2003] [info] allocated semaphore #3309586 [Sun Aug 24 21:22:00 2003] [info] created shared memory segment #4653072 I then did a make install, but of course the module was broken. I then set my httpd.conf like: PerlSetVar MasonCompRoot /home/oldcomm PerlSetVar MasonDataDir /usr/local/mason/oldcomm SetHandler perl-script PerlHandler HTML::Mason::ApacheHandler SetHandler perl-script PerlHandler Apache::Constants::NOT_FOUND Apache starts just fine, but when I try to access a page, I get: Can't locate object method "new" via package "Apache::Request" (perhaps you forgot to load "Apache::Request"?) at /usr/lib/perl5/site_perl/5.6.1/i386-linux/Apache/Request.pm line 22. So, I adjust my httpd.conf configuration and try to explicitly load Apache::Request by putting "PerlModule Apache::Request" above the MasonCompRoot in the httpd.conf config above and Apache does not start and this is in the error_log: Can't load '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Apache/Request/Request.so' for module Apache::Request: libapreq.so: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. at /usr/lib/perl5/site_perl/5.6.1/i386-linux/mod_perl.pm line 14 I am desperate for help. Can anyone give me a direction to go in other than "Reinstall Perl, Apache, mod_perl"? Also, I apologize for cross-posting, but this issue is related to both lists. Thanks for any help! Kevin -- K Old -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html