General
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't use perl module after installation

SOLVED
Go to solution
Henry Chua
Super Advisor

Can't use perl module after installation

Hi Guys,

I have recently upgraded my perl on my redhat 9.0 system from 5.8.0 to 5.8.6.
thereafter I have also installed CSV_XS. but whenever I run a script using the m
odule it will prompt me this " Can't locate Text/CSV_XS.pm in @INC (@INC contain
s: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/pe
rl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/
lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /us
r/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i3
86-linux-thread-multi /usr/lib/perl5/5.8.0 .) at ./test line 8.
BEGIN failed--compilation aborted at ./test line 8.
"

May I knwow what wrong?

Best regards
Henry
3 REPLIES
Steven E. Protter
Exalted Contributor

Re: Can't use perl module after installation

Hi Henry,

I would first check PATH and other environmental issues.

I can see from your output there is information referring to directories named 5.8.0

Now you are running 5.8.6

This can cause a lot of problems.

Check that first.

SEP
23 points until Giza

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Henry Chua
Super Advisor

Re: Can't use perl module after installation

Hi Steven,

Thanks, I have noticed that as well, do you know how i can fix that.. i try to fix the path.. but doesnt seem to work.. any ideas?

thanks!

Best regards
Henry
Karsten Breivik_1
Frequent Advisor
Solution

Re: Can't use perl module after installation


Add the path to your ~/.bash_profile file.

In order to add this to all new users, add the path to the .bash_profile skeleton in /etc/skel/.bash_profile.

Alternatively, put it in the /etc/profile script to affect all current users. This script is run on startup and among other things sets some paths.

poi