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
- 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 ....
Expand|Select|Wrap|Line Numbers
- "use /path/to/libs/used/by/5.8.8/"
Expand|Select|Wrap|Line Numbers
- # export PERL5LIB=/path/to/libs/used/by/5.8.8/
- and type 'perl -V' I get
- %ENV:
- PERL5LIB="/path/to/libs/used/by/5.8.8/"
- @INC:
- /usr/local/lib/perl5/5.10.0//i686-linux
- /usr/local/lib/perl5/5.10.0/
- /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
- so /path/to/libs/used/by/5.8.8/ is not included in the @INC
Can this ONLY be done at install time, or can I set it some way after the install?
Many thanks,
Graham