I am not Perl guy at all. But for circumstances I have to deploy perl script on new gentoo server. Script works nicely on several other servers that were configured by another guy. So new one server I've installed by myself and have different versions for some packages. As result with given perl script I have an issue:
Net::SSL from Crypt-SSLeay can't verify hostnames; either install IO::Socket::SSL or turn off verification by setting the PERL_LWP_SSL_VERIFY_HOSTNAME environment variable to 0
Actually it is installed.
perl -MIO::Socket::SSL -e 'print "$IO::Socket::SSL::VERSION\n"' 2.024
Why it does not see installed module. And what can I do on new server to fix issue without modification script? Is version difference so important? new server Perl version: 5.24.0 old server Perl version: 5.22.1
New server:
perl -v
This is perl 5, version 24, subversion 0 (v5.24.0) built for x86_64-linux
perl -MCrypt::SSLeay -e 'print "$Crypt::SSLeay::VERSION\n"'
0.72
perl -MIO::Socket::SSL -e 'print "$IO::Socket::SSL::VERSION\n"'
2.024
env | grep PERL_LWP_SSL_VERIFY_HOSTNAME
Old server: perl -v
This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux
network6 ~ # perl -MCrypt::SSLeay -e 'print "$Crypt::SSLeay::VERSION\n"'
0.72
network6 ~ # perl -MIO::Socket::SSL -e 'print "$IO::Socket::SSL::VERSION\n"'
2.012
env | grep PERL_LWP_SSL_VERIFY_HOSTNAME