473,322 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Problem with @INC on Perl upgrade

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
1 1414
numberwhun
3,509 Expert Mod 2GB
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

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

Similar topics

0
by: marko sarunac | last post by:
After much playing around a looking on groups i still can't find how to fix this problem. I have an AIX 5.1.0.0 with gcc 3.3.2 installed The gcc is the AIX build obtained at UCLA...
0
by: John C. Worsley | last post by:
I've got an extremely inscrutable problem here using Perl's Term::ReadLine::Gnu module. I'm using Perl 5.8.0, readline 4.3 and Term::ReadLine::Gnu 1.14. The problem is specific to catching INT...
2
by: Ivan | last post by:
Hi all, I have just upgraded my system from redhat 7.3 to redhat 9.0, but I found that there are many problems for this update. I have a C application that originally can compiled and run properly...
0
by: Peter Conrey | last post by:
I have a perl web service (using SOAP::Lite) with a method called "Detail" that returns a strucure (hash reference to be exact). It works fine when consumed by a Perl client, but when I try to...
2
by: shruti | last post by:
hiii all I'm tryin to call a perl script from a C program in following 2 ways- 1.By callin system function. But there's some problem because the system function is not able to executeany...
0
by: hristozov | last post by:
Hello group! The configuration: Windows, PHP 4.4.3, MySQL 5.0.24 I'm trying to upgrade PHP 4.4.3 to 5.1.6. I've installed and configured everything but there is a problem with my db...
3
by: Elliott Roberts | last post by:
I'm seeing a VERY odd issue after moving my data from a SQL2000 DB to a SQL2005 DB. About half the time, when I request a value (using ors.fields("pagedata") for instance), I get nothing returned....
0
by: DKn | last post by:
Hi all, I am trying to do Software upgradation using Win32_Product -Upgrade method in C#.Net. Here is the code. using System; using System.Management; using System.Windows.Forms;
2
by: somsub | last post by:
Hi all, Here is my samle code use strict ; use warnings ; use IO::Uncompress::Unzip ; When I compiled this three lines of code in win32 I got error like below.
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.