Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Can't locate Text/ in @INC

by kamal (Sexton)
on Jul 20, 2010 at 09:24 UTC ( #850385=perlquestion: print w/replies, xml ) Need Help??
kamal has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Even though "instmodsh" displays Text::CSV but i still get the error:

Can't locate Text/ in @INC (@INC contains: /Users/kahmed/.cpan/build /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .)

The host OS is Mac OS X 10.6.3

This is perl, v5.8.9 built for darwin-2level

Replies are listed 'Best First'.
Re: Can't locate Text/ in @INC
by almut (Canon) on Jul 20, 2010 at 09:38 UTC

    Looks like you have mixed up two installations of Perl (5.8.9 and 5.10.0).

Re: Can't locate Text/ in @INC
by DrHyde (Prior) on Jul 20, 2010 at 09:53 UTC
    Looks like you've got two different perls installed and are using one to run whatever it is that needs Text::CSV and t'other to run instmodsh. I'm gonna guess that you've got a script with a #! line that points to the wrong place.
Re: Can't locate Text/ in @INC
by Utilitarian (Vicar) on Jul 20, 2010 at 10:22 UTC
    You can either modify your script to point to the correct perl install or
    export PERL5LIB=$5.8.9_lib_location

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://850385]
Approved by almut
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2018-05-26 05:06 GMT
Find Nodes?
    Voting Booth?