Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Apache2::Request - problems installing

by cp (Initiate)
on Jul 11, 2012 at 17:28 UTC ( [id://981213]=perlquestion: print w/replies, xml ) Need Help??

cp has asked for the wisdom of the Perl Monks concerning the following question:

hi. i'm a newbie to linux and perl so you'll have to excuse any dumb questions.

I need to install the Apache2::Request perl module because some code i have references this stuff. I check CPAN (http://search.cpan.org/~isaac/libapreq2-2.13/glue/perl/lib/Apache2/Request.pm) and it seems to indicate that I need libapreq2-2.13. I tried to add it by running the cmd: "apk add perl-libapreq2" That ran with no problems, and when I do an "apk info" command, I can see perl-libapreq2 as a part of the list.

But when i try to run the my test program, it fails saying "can't locate Apache2/Request.pm in @INC". and it's true, there is no Apache2 Request.pm in the paths defined as a part of @INC. When i do a find on request.pm... a few different locations come up but none with Apache2 as a part of the directory structure. any suggestions as to where i might be going wrong would be appreciated.

Replies are listed 'Best First'.
Re: Apache2::Request - problems installing
by onelesd (Pilgrim) on Jul 11, 2012 at 17:38 UTC
    I suspect you installed the module for the system perl while a different perl is being used for your program. You could use App::perlbrew to manage your perl installs more easily.
      yes, i suspect that is true too. Cuz when I look for all instances of request.pm, this is what I get:

      /usr/lib/perl5/site_perl
      /usr/lib/perl5/core_perl

      if i had the right package that my program is looking for, would i have something like:
      /usr/lib/perl5/Apache2/
      in addition to the other 2 entries?

      I will try to take a look at App::perlbrew. But if you have any other suggestions on how to fix this problem / what to try to confirm what the problem is, i would appreciate it

        You may like to install this module via CPAN (try running "cpan") and local::lib, which manages all package installations in the home directory, without any need to be superuser.
        Sorry if my advice was wrong.
Re: Apache2::Request - problems installing
by Anonymous Monk on Jul 11, 2012 at 21:26 UTC

    How are you running your program? What perls do you have installed? Where does your perl-libapreq2 package install its files?

    Is the script supposed to be run under a web server? Are you running mod_perl? I suspect the module is geared for mod_perl installations.

Re: Apache2::Request - problems installing
by Khen1950fx (Canon) on Jul 12, 2012 at 07:36 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://981213]
Approved by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-16 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found