Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: Can't locate object method "new" via package "LWP::Protocol::https::Socket"by kcott (Archbishop) |
on Jul 08, 2022 at 21:31 UTC ( [id://11145376]=note: print w/replies, xml ) | Need Help?? |
Here's some troubleshooting tips. You'll need to make a few adjustments for your MSWin vs. my Cygwin: double quotes around perl commands springs to mind; there may be others. If cpan is telling you "LWP::Protocol::https is up to date", but perl is telling you "LWP::Protocol::https not installed", that generally suggests you're running different versions. They should be in the same directory:
Check what's in @INC:
perl -V will give you that information and a lot more. There could be something useful in that output. Try to load just the module:
That will just return (no output) on success or you might get "Can't locate LWP/Protocol/https.pm in @INC ...". If that was successful, get more information:
Note that last line of output should match a directory in @INC obtained earlier. In my case:
See how you go with those. A solution might present itself. If still stumped, post all output from those commands and we can look into it further. — Ken
In Section
Seekers of Perl Wisdom
|
|