Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Module Problem

by audiopro (Novice)
on Jul 26, 2013 at 11:20 UTC ( #1046487=perlquestion: print w/ replies, xml ) Need Help??
audiopro has asked for the wisdom of the Perl Monks concerning the following question:

I have an issue with the LWP::UserAgent module in a script which processes Paypal payments. Up until last week, the script had worked perfectly but suddenly has started to throw an error. The error message is
LWP will support https URLs if the Crypt::SSLeay module is installed. More information at <http://www.linpro.no/lwp/libwww-perl/README.SSL>.
The link provided is dead. I think the error is created in one of the depdencies of LWP::UserAgent but I cannot find which module it is. Is there a way to find which module is throwing this error?

Comment on Module Problem
Download Code
Re: Module Problem
by syphilis (Canon) on Jul 26, 2013 at 11:28 UTC
    Is there a way to find which module is throwing this error?

    I would just search perl's site/lib directory (and subdirs) for any files whose contents match (say):
    More information at <http://www.linpro.no/lwp/libwww-perl/README.SSL>.
    Cheers,
    Rob
      Thanks - this is on a shared server so I have no direct access to the modules

        Yes, even you can use CPAN, also local::lib and cpanm, which faciliate installing modules locally.

        If your host removes/changes modules without you noticing, I recommend you either do not use the provided Perl, or you communicate with your host so you can test proposed changes earlier. A third measure is to find a different host.

Re: Module Problem
by Corion (Pope) on Jul 26, 2013 at 11:30 UTC

    Consider simply installing LWP::Protocol::https, which pulls in the necessary prerequisites for the https:// protocol.

      The script was working up until recently but the ISP says nothing has changed - appears to me that something must have changed. They are also saying it is a scripting issue, which they don't support. Blew that one out of the water by giving them a link to the same script on another domain hosted by them, which works OK.

      Hm Didn't work for me?

      C:\perl64\packages>gunzip LWP-Protocol-https-6.04.tar.gz C:\perl64\packages>tar -xvf LWP-Protocol-https-6.04.tar LWP-Protocol-https-6.04/ LWP-Protocol-https-6.04/Changes LWP-Protocol-https-6.04/lib/ LWP-Protocol-https-6.04/Makefile.PL LWP-Protocol-https-6.04/MANIFEST LWP-Protocol-https-6.04/META.json LWP-Protocol-https-6.04/META.yml LWP-Protocol-https-6.04/README LWP-Protocol-https-6.04/t/ LWP-Protocol-https-6.04/t/apache.t LWP-Protocol-https-6.04/lib/LWP/ LWP-Protocol-https-6.04/lib/LWP/Protocol/ LWP-Protocol-https-6.04/lib/LWP/Protocol/https.pm C:\perl64\packages>cd LWP-Protocol-https-6.04 C:\perl64\packages\LWP-Protocol-https-6.04>makefile Checking if your kit is complete... Looks good Warning: prerequisite IO::Socket::SSL 1.54 not found. Warning: prerequisite LWP::UserAgent 6.04 not found. We have 5.834. Warning: prerequisite Mozilla::CA 20110101 not found. Warning: prerequisite Net::HTTPS 6 not found. We have 5.819. Writing Makefile for LWP::Protocol::https C:\perl64\packages\LWP-Protocol-https-6.04>nmake Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. cp lib/LWP/Protocol/https.pm blib\lib\LWP\Protocol\https.pm C:\perl64\packages\LWP-Protocol-https-6.04>nmake test Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. C:\perl64\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_ha +rness(0, 'blib\lib', 'blib\arch')" t/*.t t/apache.t .. Can't locate object method "is_online" via package "LWP: +:UserAgent" at t/apache.t line 9. t/apache.t .. Dubious, test returned 9 (wstat 2304, 0x900) No subtests run Test Summary Report ------------------- t/apache.t (Wstat: 2304 Tests: 0 Failed: 0) Non-zero exit status: 9 Parse errors: No plan found in TAP output Files=1, Tests=0, 0 wallclock secs ( 0.03 usr + 0.03 sys = 0.06 CPU +) Result: FAIL Failed 1/1 test programs. 0/0 subtests failed. NMAKE : fatal error U1077: 'C:\perl64\bin\perl.exe' : return code '0x9 +' Stop.

      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

        Warning: prerequisite IO::Socket::SSL 1.54 not found. Warning: prerequisite LWP::UserAgent 6.04 not found. We have 5.834. Warning: prerequisite Mozilla::CA 20110101 not found. Warning: prerequisite Net::HTTPS 6 not found. We have 5.819. ... Can't locate object method "is_online" via package "LWP::UserAgent"
        If you install using the download/unpack/build steps, then sure, dependencies won't be installed and you have to do it by hand. Using cpan, ppm, or one of the other cpan clients would bring in the prerequisites, but you already knew that, right? ;-)

        --MidLifeXis

Re: Module Problem
by daxim (Chaplain) on Jul 26, 2013 at 11:35 UTC
      As the ISP is reluctant to help, I am hoping to get to the bottom of the issue by doing their job for them.
            As the ISP is reluctant to help, I am hoping to get to the bottom of the issue by doing their job for them.

        As a former hosting provider I have to side with your provider on this one. There is an expectation that if you are doing things on their servers that isn't already shrink wrapped for you that you are on your own to fix issues as they pop up with your scripts.

        As someone who has in the past been frustrated by a provider's willingness to update their woefully inadequate Perl module selection I no longer use shared hosting. Consider getting yourself on a VPS. It's more responsibility in terms of keeping things running, but you get to control your world. There are lots of providers out there that provide Windows and Linux VPS plans. If you'd like a recommendation msg me privately.


        Peter L. Berghold -- Unix Professional
        Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1046487]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-12-29 00:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls