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