libapreq2 : cant locate Apache2/Request.pm
I want to use the Apache2::Request module documented here :
http://
so i did
$ sudo apt-get install libapreq2
$ sudo apt-get install libapache2-
I already have a preliminary question here : is the second line mandatory ? (if yes, why is it not a dependance, if not, what's its use ?)
Then, i tried a simple handler :
-------
package Test;
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::Const -compile => qw(OK);
use Apache2::Request;
sub handler {
my $r = shift;
$r-
print "Mod_perl 2.0 handler\n";
$req = Apache2:
return Apache2::Const::OK;
}
1;
-------
And i got this error message :
[Thu Jul 03 00:05:25 2008] [error] [client 127.0.0.1] failed to resolve handler `Test': Can't locate Apache2/Request.pm in @INC (@INC contains: /var/www/work/test /etc/perl /usr/local/
I then did, in /etc/apache2/
$ sudo ln -s ../mods-
then restarted apache2. I had this line in log :
[notice] Apache/2.2.8 (Ubuntu) mod_apreq2-
And i tried again, but got the same message (Can't locate Apache2/Request.pm)
I'll just use CGI.pm instead, but if you can help me understand, i'd be grateful.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu libapreq2 Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Raphaël Payen
- Solved:
- Last query:
- Last reply: