Home: Perl Programming Help: Intermediate:
Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/



donghe
Novice

Apr 22, 2009, 3:10 PM


Views: 9186
Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/

Hi Friends,

I got this error message- (Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/....)) when I run a program. However, the Scalar.pm is located in the '/opt/rocks/lib/perl5/5.8.8/IO/' directory and this directory is in the array @INC. Does anybody know what's wrong with it?

Thanks!

Dong


FishMonger
Veteran / Moderator

Apr 22, 2009, 3:21 PM


Views: 9185
Re: [donghe] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/

It sounds like the module wasn't properly installed. You may need to remove it and reinstall it.


donghe
Novice

Apr 22, 2009, 3:56 PM


Views: 9182
Re: [FishMonger] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/

still doesn't work


KevinR
Veteran


Apr 22, 2009, 4:23 PM


Views: 9180
Re: [donghe] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/

How are you installing the module?
-------------------------------------------------


donghe
Novice

Apr 22, 2009, 5:44 PM


Views: 9175
Re: [KevinR] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/

I download IO-stringy-2.110.tar.gz from CPAN, unzip it, then did perl Makefile.PL, make, make test, and make install. there is no any error message showing up


KevinR
Veteran


Apr 23, 2009, 9:19 AM


Views: 9171
Re: [donghe] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/

Well, if there is no error message then I am not sure what the problem is. Are you using Windows? Do you have mopre than one install of Perl on Windows? That is a bad idea and can lead to problems.
-------------------------------------------------


donghe
Novice

Apr 23, 2009, 10:05 AM


Views: 9170
Re: [KevinR] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/

i use linux


KevinR
Veteran


Apr 23, 2009, 2:56 PM


Views: 9164
Re: [donghe] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/

Can you install any module?
-------------------------------------------------


donghe
Novice

Apr 23, 2009, 3:41 PM


Views: 9163
Re: [KevinR] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/

what do you mean? i installed Scalar.pm


$hoc3r
New User

May 12, 2009, 7:21 AM


Views: 9092
Re: [donghe] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/

have you tried installing it via the CPAN interaface, i.e

perl -MCPAN -e 'shell'