Home > Archive > PERL Miscellaneous > May 2004 > using modules
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| BigDaDDY 2004-05-20, 5:31 am |
| Hi all,
Quick question. I've got a Perl program that runs fine from my account at
work, but when someone else copies it and tries to run it from their
account, or when I telnet to another machine and try to run it, it doesn't
work. The error is something to the effect..."Can't find loadable object
in Term::Readkey".
At the top of my script I have
use lib "/acct/mjo1234/perllib";
and below I have
use Term::ReadKey;
I can't understand why this wouldn't work when I telnet to another machine.
Could it be the PERL5LIB environmental variable? Any feedback would be
highly appreciated. Thank you.
Matt
| |
| Ben Morrow 2004-05-20, 2:31 pm |
|
Quoth ihatespam@hotmail.com:
> Hi all,
>
> Quick question. I've got a Perl program that runs fine from my account at
> work, but when someone else copies it and tries to run it from their
> account, or when I telnet to another machine and try to run it, it doesn't
> work. The error is something to the effect..."Can't find loadable object
> in Term::Readkey".
>
> At the top of my script I have
>
> use lib "/acct/mjo1234/perllib";
Do other people have search access to this directory?
Is this directory the same on the other machine you telnet to?
Ben
--
It will be seen that the Erwhonians are a m and long-suffering people,
easily led by the nose, and quick to offer up common sense at the shrine of
logic, when a philosopher convinces them that their institutions are not based
on the strictest morality. [Samuel Butler, paraphrased] ben@morrow.me.uk
| |
| Indigo5 2004-05-20, 7:31 pm |
| I have permissions wide open. However I think the problem may be stemming
from the @INC array. It appears that the default search path for typical
users is /opt/perl5.005_03/lib. However, many moons ago when I was a Perl
newbie, I complained to my system admins about how they took Perl/Tk out of
the latest production install of Perl. So, their solution was to point my
account at /opt/perl/lib/aix/5.00404. Consequently, I think there is a
module that is being found in my search path and not in the other search
path.
"Ben Morrow" <usenet@morrow.me.uk> wrote in message
news:c8ir25$li9$4@wisteria.csv.warwick.ac.uk...
>
> Quoth ihatespam@hotmail.com:
at[color=darkred]
doesn't[color=darkred]
object[color=darkred]
>
> Do other people have search access to this directory?
>
> Is this directory the same on the other machine you telnet to?
>
> Ben
>
> --
> It will be seen that the Erwhonians are a m and long-suffering people,
> easily led by the nose, and quick to offer up common sense at the shrine
of
> logic, when a philosopher convinces them that their institutions are not
based
> on the strictest morality. [Samuel Butler, paraphrased]
ben@morrow.me.uk
|
|
|
|
|