Re: [mh] Repairing LWP
Rick Steeves via misterhouse-users <[email protected]>
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
Even more convinced this won't be a direct silver bullet, as if there's a version requirement causing trouble, it's going to be hard to track down where the issue is. If you have an old module in MH, but it doesn't quite work, but the module isn't installed in Perl, then figuring out what to remove is a PITA. Also, use_URL expicitly has code in it to use the MH LWP: # Point to mh LWP, in case local perl does not have it installed I've got LWP working, and with slight modification internet_USGS.pl (adding -ua and, of course, changing the URL to https). I'm running Perl 5.8.*, and the time stamp on the mh bin file is 2005-10-01 (hey, I said it was old). Here's roughly how I fixed for anyone else trying to get https working: via PPM: install dmake, minGW manually Update/copy d:\perl\lib\LWP\Pyesrotocol\https.pm from MetaCPAN via PPM: install Package "Encode" (as earlier I figured out it could be needed by the newer LWP) via PPM: install Archive::TAR and Archive::Zip upgrades (added IO-Compress, Package-Constants, Compress-Raw-Bzip2, Comperss-Raw-Zlib) via PPM: install Digest SHA, YAML cpan: install OALDERS/LWP-Protocol-https-6.07.tar.gz Requires: LWP::UserAgent, *IO::Socket::SSL, *Mozilla::CA, *Test::RequiresInternet, Net::HTTPS, *Module::Metadata, CPAN::Meta::Requirements, *Net::SSLeay, *Net::HTTPS via PPM: install Digest-SHA via PPM: update HTML-Parser cpan: install G/GB/GBARR/CPAN-DistnameInfo-0.12.tar.gz cpan: install OLEG/Net-HTTPS-NB-0.15.tar.gz via PPM: install HTML manually update version, version/vxs.pm and version/vpp.pm from METACPAN Remove d:\misterhouse\mh\lib\site\LWP.pm Remove d:\misterhouse\mh\lib\site\auto\LWP\* Remove d:\misterhouse\mh\lib\site\LWP\* Remove d:\misterhouse\mh\lib\site\HTTP Remove d:\misterhouse\mh\lib\site\HTML (broke mh_proxy for FormatText.pm, undeleted) Remove d:\misterhouse\mh\lib\site\auto\http Remove d:\misterhouse\mh\lib\site\ Remove d:\misterhouse\MH\lib\site\Net Remove d:\misterhouse\MH\lib\site\HTTP.pm Remove d:\misterhouse\MH\lib\site\HTTPS.pm Remove d:\misterhouse\MH\lib\URI Remove d:\misterhouse\MH\lib\URI.pm I also updated my copy of get_url from Github, which permitted me to update internet _USGS to add -ua for my get_url call and switch from the use_ua subroutine (using LWP::UserAgent) instead of the use_get (which uses LWP::Simple) subroutine in get_url I hope that's helpful to someone. rick On 8/26/2019 5:58 PM, Brian M wrote: > > Pull request #786 addresses this. It moves these packages into a > separate Perl library that is late in @INC, after the regular system > libraries (e.g. /usr/local/lib/perl5 or whatever your system uses). The > net result is that MH users will use the MH-supplied versions of common > Perl packages only if system versions are not available. > > If pull request #786 is accepted, you could solve this just by > installing LWP in one of your regular system Perl package folders, > probably through your distro installation tools. > > I don't know what the normal process is for reviewing and > accepting/rejecting pull requests, so I don't know when #786 will be > considered. I do know that we're lucky to have maintainers that > volunteer their time to caring for MH, and I appreciate them. > > -Brian M. > > > > ________________________________________________________ > To unsubscribe from this list, go to: > https://lists.sourceforge.net/lists/listinfo/misterhouse-users > -- Rick Steeves https://www.irelandbybicycle.com It's all fun and games until someone ends up wearing a cone. ________________________________________________________ To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users