in reply to Can't locate LWP/UserAgent.pm
I'm a bit confused. Here what I've understood: there's a CGI script that has some problems, so you tried it from the command line, where it gives compilation errors due to lack of LWP::UserAgent. My suspect is that you have two version of Perl on that machine. One is /usr/bin/perl, which is used by the script when run through the webserver, and the other one is /usr/local/bin/perl, which is being called when you type perl from the command line. The latter has not LWP::UserAgent installed. You can verify my suspect typing:
which perl
at the command prompt.
which perl
at the command prompt.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Can't locate LWP/UserAgent.pm
by kryberg (Pilgrim) on Aug 05, 2003 at 14:41 UTC | |
by alienhuman (Pilgrim) on Aug 05, 2003 at 15:04 UTC | |
by kryberg (Pilgrim) on Aug 06, 2003 at 14:03 UTC | |
by alienhuman (Pilgrim) on Oct 01, 2003 at 19:03 UTC | |
by Anonymous Monk on Mar 26, 2013 at 21:15 UTC | |
by Anonymous Monk on Jul 14, 2008 at 09:14 UTC | |
by Anonymous Monk on Jun 22, 2015 at 19:23 UTC | |
by Anonymous Monk on Oct 16, 2009 at 11:26 UTC | |
by Anonymous Monk on Nov 17, 2009 at 22:27 UTC | |
by Anonymous Monk on Nov 18, 2009 at 07:31 UTC |
In Section
Seekers of Perl Wisdom