Re: Module Problem
by Corion (Patriarch) on Jul 26, 2013 at 11:30 UTC
|
Consider simply installing LWP::Protocol::https, which pulls in the necessary prerequisites for the https:// protocol.
| [reply] [d/l] |
|
|
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.
| [reply] [d/l] |
|
|
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? ;-)
| [reply] [d/l] [select] |
|
|
|
|
|
|
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.
| [reply] |
Re: Module Problem
by syphilis (Archbishop) 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 | [reply] [d/l] |
|
|
Thanks - this is on a shared server so I have no direct access to the modules
| [reply] |
|
|
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.
| [reply] |
|
|
|
|
Re: Module Problem
by daxim (Curate) on Jul 26, 2013 at 11:35 UTC
|
| [reply] |
|
|
As the ISP is reluctant to help, I am hoping to get to the bottom of the issue by doing their job for them.
| [reply] |
|
|
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
| [reply] |