CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

Post #1 of 10 (3731 views)
Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ Can't Post

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

Post #2 of 10 (3730 views)
Re: [donghe] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post

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

Post #3 of 10 (3727 views)
Re: [FishMonger] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post

still doesn't work


KevinR
Veteran


Apr 22, 2009, 4:23 PM

Post #4 of 10 (3725 views)
Re: [donghe] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post

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


donghe
Novice

Apr 22, 2009, 5:44 PM

Post #5 of 10 (3720 views)
Re: [KevinR] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post

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

Post #6 of 10 (3716 views)
Re: [donghe] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post

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

Post #7 of 10 (3715 views)
Re: [KevinR] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post

i use linux


KevinR
Veteran


Apr 23, 2009, 2:56 PM

Post #8 of 10 (3709 views)
Re: [donghe] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post

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


donghe
Novice

Apr 23, 2009, 3:41 PM

Post #9 of 10 (3708 views)
Re: [KevinR] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post

what do you mean? i installed Scalar.pm


$hoc3r
New User

May 12, 2009, 7:21 AM

Post #10 of 10 (3637 views)
Re: [donghe] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post

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

perl -MCPAN -e 'shell'

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives