0
votes

My perl script is working fine on Server 1 and same script is giving error on Server 2. On both server I have same library but still it is giving error. I have tried by setting LD_LIBRARY_PATH but still m getting same error.

The same script is running on Server 1 and not running on Server 2. Even after having the same OS and Kernel version.

Error(while running perl script related to perl lib load) is as below:

Can't load '/user/csm/64-bit/cpan/5.20.2-2014.10/lib/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay: libssl.so.1.0.0: cannot open shared object file: No such file or directory at /user/csm/64-bit/perl/5.20.2/lib/5.20.2/x86_64-linux-thread-multi/DynaLoader.pm line 193.
 at /user/csm/64-bit/cpan/5.20.2-2014.10/lib/IO/Socket/SSL.pm line 19.
Compilation failed in require at /user/csm/64-bit/cpan/5.20.2-2014.10/lib/IO/Socket/SSL.pm line 19.
BEGIN failed--compilation aborted at /user/csm/64-bit/cpan/5.20.2-2014.10/lib/IO/Socket/SSL.pm line 19.
Compilation failed in require at /user/csm/64-bit/cpan/5.20.2-2014.10/lib/Net/HTTPS.pm line 26.
Can't load '/user/csm/64-bit/cpan/5.20.2-2014.10/lib/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: libssl.so.1.0.0: cannot open shared object file: No such file or directory at /user/csm/64-bit/perl/5.20.2/lib/5.20.2/x86_64-linux-thread-multi/DynaLoader.pm line 193.
 at /user/csm/64-bit/cpan/5.20.2-2014.10/lib/Net/SSL.pm line 20.
Compilation failed in require at /user/csm/64-bit/cpan/5.20.2-2014.10/lib/Net/SSL.pm line 20.
Compilation failed in require at /user/csm/64-bit/cpan/5.20.2-2014.10/lib/Net/HTTPS.pm line 30.
Compilation failed in require at /user/csm/64-bit/cpan/5.20.2-2014.10/lib/LWP/Protocol/https.pm line 8.
Compilation failed in require at (eval 43) line 2.
What's the version of Perl on both machines?Chankey Pathak
Perl 5 Version 20. I am running it as:Dev
/user/csm/64-bit/perl/5.20.2/bin/perl my_perl.plDev
are y ou able to locate the libssl.so shared lib on both servers in the same location with same permissions on each server?Chris Doyle
libssl.so is located on both servers. Both are having same path.Dev