I've compiled and (apparently) successfully installed libapreq2. However, I have two problems that are possibly related:

1) When I try to call Apache::Request methods (like new() ), I get an error to the effect that it can't find Apache2/Request.pm in @INC. And indeed although it is in the temp directory that I built libapreq2 in, it didn't get installed into @INC even though there were no errors from 'make' or 'make install' . I can copy it (and the .pm files under APR as well which also didn't get installed) into @INC directories, but I'm wondering if this is a symptom of a bigger problem.

2) My startup.pl file won't load with the line "Use Apache2();" in it, also with an error that it isn't in @INC. It's actually in @INC, but under Bundle/. When I include Bundle in @INC, it barfs on a whole bunch of XS stuff. My startup.pl file is copied here in case I've made other errors:
-----------------------------------
if ( ! {MOD_PERL}) { die "GATEWAY_INTERFACE not Perl!"; }

#use Apache2();

use lib qw(/srv/www/lib);

# enable if the mod_perl 1.0 compatibility is needed
# use Apache::compat ();

use ModPerl::Util (); #for CORE::GLOBAL::exit
use ModPerl::MethodLookup();

use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::RequestUtil ();

use Apache2::ServerRec ();
use Apache2::ServerUtil ();
use Apache2::Connection ();
use Apache2::Log ();

use APR::Table ();

use ModPerl::Registry ();

use Apache2::Const -compile => ':common';
use APR::Const -compile => ':common';

1;
-----------------------------------------
the relevant httpd.conf section if helpful:

----
  LoadModule apreq_module    /usr/lib/apache2/mod_apreq2.so

<IfModule mod_perl.c>
  PerlRequire "/etc/apache2/mod_perl-startup.pl"

   ScriptAlias /perl/ "/srv/www/cgi-bin/"
   <Location /perl/>
  # mod_perl mode
  SetHandler perl-script
  PerlResponseHandler ModPerl::Registry
  PerlOptions +ParseHeaders
  Options +ExecCGI
   </Location>

   ScriptAlias /cgi-perl/ "/srv/www/cgi-bin/"
   <Location /cgi-perl>
  # perl cgi mode
  SetHandler  perl-script
  PerlResponseHandler ModPerl::PerlRun
  PerlOptions +ParseHeaders
  Options +ExecCGI
   </Location>
-----------

This is my first mod_perl and my understanding of the mechanics are foggy at best right now. TIA for any help.

-Joshua

Reply via email to