Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^2: Install CPAN module to another perl version

by Martin90 (Sexton)
on Aug 14, 2014 at 21:36 UTC ( #1097491=note: print w/replies, xml ) Need Help??

in reply to Re: Install CPAN module to another perl version
in thread Install CPAN module to another perl version

Thanks for replies, unfortunately perl doesn't see new installed module.

I added PATH="/opt/perl-5.16/bin:$PATH" to $PATH variable, saved.

When I ask: "which perl" I get repsonse "/opt/perl-5.16/bin/perl",

when I ask: "which cpan", I get resposne "/opt/perl-5.16/bin/cpan" #Hmm is it ok ? Should CPAN be located there ?

Then I install my module via "CPAN INSTALL MODULE" the whole proces goes ok, but my app doesn't see this new module in @INC and return:

Can't locate in @INC (@INC contains: Plugins Modules . /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8) (..)

It is still looking in "/usr/lib/perl5", whats wrong ?

PS: When I change my shebang from "#!/usr/bin/env perl " to "#!/opt/perl-5.16/bin/perl" I get Internal Server Error.

What's wrong ? ;/

  • Comment on Re^2: Install CPAN module to another perl version

Replies are listed 'Best First'.
Re^3: Install CPAN module to another perl version
by Anonymous Monk on Aug 14, 2014 at 21:57 UTC
      SOLVED, thank you ;) As it turned out #!/opt/perl-5.16/bin/perl was right shebang.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1097491]
[Corion]: Hi marto!
[Corion]: Oooh - finally, I can say no lazy; :)
[Corion]: But it's another The::Net incarnation, too sad ;)
[Corion]: WTF? There is a dev release of Danga::Socket?! I thought that module died a long time ago?! According to its changes, the last release was in 2008 ;)
[Corion]: (and Brad Fitzpatrick long since moved on to Go ;) )
[Corion]: But who am I to worry about necrocpan - I'm revisiting my online banking module, and also I'll somewhat revive WWW::Mechanize:: Firefox, at least if the test suite passes under the Waterfox browser ...
[Corion]: Maybe I should look through my CPAN releases and revisit them in order of last release and think about what to do with the modules :)
[marto]: this cpan day there should be a call to remove old crud :P

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2018-07-17 08:18 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (359 votes). Check out past polls.