我的perl脚本在服务器1上工作正常,同一脚本在服务器2上出错。 在两台服务器上我都有相同的库,但它仍然给出了错误。 我试过设置LD_LIBRARY_PATH但仍然得到相同的错误。
相同的脚本在服务器1上运行,而不是在服务器2上运行。即使具有相同的操作系统和内核版本。
错误(运行与perl lib load相关的perl脚本时)如下:
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.