By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,851 Members | 1,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,851 IT Pros & Developers. It's quick & easy.

Problem with @INC on Perl upgrade

P: 1
Hi,
I've just upgraded perl from 5.8.8 to 5.10.0
I have lots of scripts that use various perl modules and libraries. Now when I run them, they can't find them.
For example I get:
Expand|Select|Wrap|Line Numbers
  1. Can't locate Data/Page.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.0/i686-linux /usr/local/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i686-linux /usr/local/lib/perl5/site_perl/5.10.0 .) at ....
I don't want to have to go through every script and put
Expand|Select|Wrap|Line Numbers
  1.  "use /path/to/libs/used/by/5.8.8/"
If I try
Expand|Select|Wrap|Line Numbers
  1. # export PERL5LIB=/path/to/libs/used/by/5.8.8/
  2. and type 'perl -V' I get
  3.  %ENV:
  4.     PERL5LIB="/path/to/libs/used/by/5.8.8/"
  5.   @INC:
  6.     /usr/local/lib/perl5/5.10.0//i686-linux
  7.     /usr/local/lib/perl5/5.10.0/
  8.     /usr/local/lib/perl5/5.10.0/i686-linux
  9.     /usr/local/lib/perl5/5.10.0
  10.     /usr/local/lib/perl5/site_perl/5.10.0/i686-linux
  11.     /usr/local/lib/perl5/site_perl/5.10.0
  12. so /path/to/libs/used/by/5.8.8/ is not included in the @INC
So, how do I get '/path/to/libs/used/by/5.8.8/' into my @INC?
Can this ONLY be done at install time, or can I set it some way after the install?

Many thanks,
Graham
Mar 13 '08 #1
Share this Question
Share on Google+
1 Reply


numberwhun
Expert Mod 2.5K+
P: 3,503
Hi,
I've just upgraded perl from 5.8.8 to 5.10.0
I have lots of scripts that use various perl modules and libraries. Now when I run them, they can't find them.
For example I get:
Expand|Select|Wrap|Line Numbers
  1. Can't locate Data/Page.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.0/i686-linux /usr/local/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i686-linux /usr/local/lib/perl5/site_perl/5.10.0 .) at ....
I don't want to have to go through every script and put
Expand|Select|Wrap|Line Numbers
  1.  "use /path/to/libs/used/by/5.8.8/"
If I try
Expand|Select|Wrap|Line Numbers
  1. # export PERL5LIB=/path/to/libs/used/by/5.8.8/
  2. and type 'perl -V' I get
  3.  %ENV:
  4.     PERL5LIB="/path/to/libs/used/by/5.8.8/"
  5.   @INC:
  6.     /usr/local/lib/perl5/5.10.0//i686-linux
  7.     /usr/local/lib/perl5/5.10.0/
  8.     /usr/local/lib/perl5/5.10.0/i686-linux
  9.     /usr/local/lib/perl5/5.10.0
  10.     /usr/local/lib/perl5/site_perl/5.10.0/i686-linux
  11.     /usr/local/lib/perl5/site_perl/5.10.0
  12. so /path/to/libs/used/by/5.8.8/ is not included in the @INC
So, how do I get '/path/to/libs/used/by/5.8.8/' into my @INC?
Can this ONLY be done at install time, or can I set it some way after the install?

Many thanks,
Graham
Is it that you upgraded, or you installed 5.10 and have both running?

Have you tried re-installing the Perl module's you need and see if that works?

Regards,

Jeff
Mar 14 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.