in reply to Yet another strange problem with Perl upgrade

I'm getting the same error, only with "use LWP::UserAgent;"

It works fine when I "use LWP::Simple" or just "use LWP," but for one reason or another, it doesn't let me do any more advanced work with LWP.

Any suggestions would be greatly apreciated.

-X

Replies are listed 'Best First'.
Re: Same problem, different module (LWP)
by shotgunefx (Parson) on Jul 09, 2002 at 01:56 UTC
    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."
      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

Re: Same problem, different module (LWP)
by Aristotle (Chancellor) on Jul 09, 2002 at 01:28 UTC
    it doesn't let me do any more advanced work with LWP
    Which translates as? You can't pull in any of the other LWP modules? That would be odd, since LWP::Simple relies on them and wouldn't work if they didn't..

    Makeshifts last the longest.