in reply to Apache::Request causing Mason to fail.

What makes you think that Apache::Request is installed correctly? Have you tried loading it directly in a mod_perl script or Mason component?
  • Comment on Re: Apache::Request causing Mason to fail.

Replies are listed 'Best First'.
Re: Re: Apache::Request causing Mason to fail.
by thunders (Priest) on Sep 16, 2003 at 15:10 UTC
    It had an OK status both when I tried to install from an RPM and when I tried it through CPAN and from source. I erased the RPM install, as it just gave the same error. I would say you are right, it seems pretty clear it's not installed correctly, but how else can a module be installed? I tried building Apache::Test and libapreq manually. both appeared to install, but the test of libapreq did fail again.
    [root@iweb libapreq-1.2]# 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/perl5.8.0 -Iblib/arch -Iblib/lib \ t/TEST -clean *** setting ulimit to allow core files ulimit -c unlimited; t/TEST -clean APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS= \ /usr/bin/perl5.8.0 -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' (65534:65534) /usr/sbin/httpd-perl -d /root/.cpan/build/libapreq-1.2/t -f /root/.cp +an/build/libapreq-1.2/t/conf/httpd.conf -DAPACHE2 -DPERL_USEITHREADS using Apache-AdvancedExtranetServer/1.3.27 waiting for server to start: .Syntax error on line 116 of /root/.cpan/ +build/libapreq-1.2/t/conf/httpd.conf: Invalid command 'PerlSwitches', perhaps mis-spelled or defined by a mo +dule not included in the server configuration !!! server has died with status 255 (t/logs/error_log wasn't created, star +t the server in the debug mode) make: *** [run_tests] Error 143
      For what it is worth, i use Apache Toolbox to configure, make, and install both Apache and mod_perl. Once Apache has been installed (with the Perl interpreter inside), i use the CPAN.pm cpan shell to install all CPAN modules. The important thing is that the version of Perl you embed into Apache is the same one your CPAN modules are being installed "to". I believe that you can see if you are using one or two different Perl interpreters by inspecting the contents of @INC
      1. in a shell owned by you
      2. in a regular CGI script (via browser)
      3. in a mod_perl handler (via browser)
      Hope this helps, these problems are never fun. :/

      jeffa

      L-LL-L--L-LL-L--L-LL-L--
      -R--R-RR-R--R-RR-R--R-RR
      B--B--B--B--B--B--B--B--
      H---H---H---H---H---H---
      (the triplet paradiddle with high-hat)
      
      PerlSwitches is a mod_perl 2 thing. It looks like Apache::Test doesn't know what to do with the modified mod_perl and apache that Mandrake gave you. I'd suggest you build them yourself instead.

      The Apache::Test issues may be fixable. You can get help with Apache::Test on the mod_perl mailing list.