Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Apache2::Request - problems installing

by cp (Initiate)
on Jul 11, 2012 at 17:28 UTC ( #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 ( 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/ in @INC". and it's true, there is no Apache2 in the paths defined as a part of @INC. When i do a find on 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, this is what I get:


      if i had the right package that my program is looking for, would i have something like:
      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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://981213]
Approved by kcott
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2018-01-19 21:59 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (223 votes). Check out past polls.