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 MODULE.pm 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 ? ;/


In reply to Re^2: Install CPAN module to another perl version by Martin90
in thread Install CPAN module to another perl version by Martin90

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.