in reply to Re^3: CPAN LWP Install won't return local requests
in thread CPAN LWP Install won't return local requests

This has led me down the road of noticing that the module Encode is required by LWP and Encode will not install on my server. I'm not sure what to do to fix this but i just thought i would update this ticket.
jtrue
  • Comment on Re^4: CPAN LWP Install won't return local requests

Replies are listed 'Best First'.
Re^5: CPAN LWP Install won't return local requests
by Khen1950fx (Canon) on Dec 20, 2009 at 22:32 UTC
    Encode is a dualLived module that's been part of the core since perl5.7.3. However, libwww-perl was written with 5.006. I checked the dependencies, and I don't see Encode listed as a prereq. Where did you find the Encode dep at?
      Inside the HTTP::Response.pm file subroutine is called filename it says "require Encode;"

      Does anyone care to comment on the best way to remove my "LWP" install i did last night? I don't see a way to do that in CPAN.

      Thanks for reading everybody!

      jtrue
        Thanks for the response. I found "require Encode". Strange but I found a recent response from Aas, Re: Encode dependency, that explains things. He said that LWP was meant to work even without Encode:-).
        I did not "fix" this. But my server is now working. I did a search on my server for "Simple.pm" and found two copies. Luckily one was an older version.

        so i just copied the older one into my current library and now the script works.

        cp /usr/lib/perl5/site_perl/5.6.0/LWP/Simple.pm /usr/lib/perl5/site_pe +rl/5.6.1/LWP/Simple.pm
        I'm sure HTTP::UserAgent is probably broken but at least LWP::Simple is back to working again.
        jtrue