Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] How to add /usr/local/lib/perl/5.6.1/ to the perl @INC array in Debian


Michael Lake wrote:

I have a server with some CPAN modules in /usr/local/lib/perl/5.6.1/
perl is now 5.8 and is not finding the scripts in 5.6 An upgrade occurred weeks ago so I dont know why this has occurrred just today or maybe yesterday.

Perl 5.8 is not binary compatible with Perl 5.6.1 (see more in perldoc perl58delta, or over here http://linuxcommand.org/man_pages/perl58delta1.html )

As a result, many modules will need to be recompiled and installed to work under 5.8.

Most Pure Perl modules should continue to work well.

I probably need to add /usr/local/lib/perl/5.6.1/ to the @INC array

Because of the binary incompatibilities this may not solve your problem.


Once this issue was brought up the convention became to put Perl Perl (distribution irrelevant) modules in /usr/local/lib/site_perl and modules with C or other binary components in perl/version/

All the best,

    Jacinta

--
   ("`-''-/").___..--''"`-._          |  Jacinta Richardson         |
    `6_ 6  )   `-.  (     ).`-.__.`)  |  Perl Training Australia    |
    (_Y_.)'  ._   )  `._ `. ``-..-'   |      +61 3 9354 6001        |
  _..`--'_..-_/  /--'_.' ,'           | contact@xxxxxxxxxxxxxxxxxxx |
 (il),-''  (li),'  ((!.-'             |   www.perltraining.com.au   |