in reply to Same problem, different module (LWP)
in thread Yet another strange problem with Perl upgrade

Check your spelling. It's LWP::UserAgent. The other thing if it works under the shell but not under CGI (or vice-versa), it could be you are using perl-run and Apache has been linked with a different version of perl. I had that happened once and it took me a bit to figure it out.

-Lee

"To be civilized is to deny one's nature."
  • Comment on Re: Same problem, different module (LWP)

Replies are listed 'Best First'.
LWP issues
by Anonymous Monk on Jul 17, 2002 at 01:43 UTC
    I am - for now - just running through the shell. When I run Perl command line and type my program in (it checks line-by-line, as you recall), I get the following:
    use LWP::UserAgent; Can't locate URI.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586- +linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i586-linux +/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at (eval 1 +) line 3. Compilation failed in require at /usr/lib/perl5/5.6.1/HTTP/Request.pm +line 39. Compilation failed in require at /usr/lib/perl5/5.6.1/LWP/UserAgent.pm + line 108.BEGIN failed--compilation aborted at /usr/lib/perl5/5.6.1/L +WP/UserAgent.pm line 108. Compilation failed in require at - line 1. BEGIN failed--compilation aborted at - line 1.
    I don't know what would cause it to do this, but for one reason or another, I can't use LWP::UserAgent, or just use LWP. I'm stumped :-/ -X

      Hello,

      You need to install URI module from CPAN.

      --
      Alper Ersoy