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

@INC: modules is there but not located

by jonjacobmoon (Pilgrim)
on Jan 03, 2002 at 22:10 UTC ( [id://136023]=perlquestion: print w/replies, xml ) Need Help??

jonjacobmoon has asked for the wisdom of the Perl Monks concerning the following question:

While trying to install a chatterbox client so I can converse easier on the Monk Chat, I ran into a preplexing problem.

Although PerlMonks::Chat is in /usr/lib/perl5/5.6.0/i386-linux, I still get the message that it cannot be located. I suppose I am doing something really dumb and will look like an idiot when I see the answer, it eludes me at the moment.

Any hints?

Replies are listed 'Best First'.
Re: @INC: modules is there but not located
by chromatic (Archbishop) on Jan 03, 2002 at 22:28 UTC
    Print @INC, include the output of 'locate Chat.pm', and include your use line. One of those is incorrect. It's probably a typo.
      Well, no that is not it. **I not THAT much of an idiot** :)

      However, I am somewhat of an idiot. I didn't stop to think that the directory holding the module when unzipped would not be executable. When I changed the permissions on it work as expected.

      Thanks anyway.

Re: @INC: modules is there but not located
by mkmcconn (Chaplain) on Jan 04, 2002 at 09:11 UTC

    We're forced to guess, so my guess is that you have two versions of perl on your system, and that the shebang in your monkchat script is calling for 'the other one'.

    If which perl returns '/usr/bin/perl', but the shebang points to '/usr/local/bin/perl' (and if these are not the same file, symlinked), then change the shebang to say #!/usr/bin/perl and the problem might go away.
    Good luck,
    mkmcconn

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://136023]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-20 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found