在 Solaris 10 上安装 Perl's Crypt::SSLeay 时出现问题
我正在尝试安装 Crypt::SSLeay
perl 模块,但它一直失败。
Perl 是 v5.8.8; Solaris 是 5.10,基于 Intel 硬件。
我正在使用 CPAN 模块来尝试安装,当它进入“make test”阶段时,问题就开始了:
Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-basic......1/12
# Failed test 'use Crypt::SSLeay;'
# in t/00-basic.t at line 6.
# Tried to use 'Crypt::SSLeay'.
# Error: Can't load '/.cpan/build/Crypt-SSLeay-0.58-tvJe1E/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: ld.so.1: perl: fatal: libssl.so.0.9.8: open failed: No such file or directory at /usr/local/lib/perl5/5.8.8/i86pc-solaris/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at t/00-basic.t line 6.
我已经验证了 ld.so.1 和 libssl.so.0.9.8 都存在,并且据我所知可以看出,OpenSSL 已安装(pkginfo 显示“OpenSSL Libraries (Usr)”)。
有人对可能出现的问题有任何想法吗?
戴夫
I'm trying to install the Crypt::SSLeay
perl module and it keeps failing.
Perl is v5.8.8; Solaris is 5.10 and is on Intel hardware.
I'm using the CPAN module to attempt the install and the problems start when it gets to the 'make test' stage:
Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-basic......1/12
# Failed test 'use Crypt::SSLeay;'
# in t/00-basic.t at line 6.
# Tried to use 'Crypt::SSLeay'.
# Error: Can't load '/.cpan/build/Crypt-SSLeay-0.58-tvJe1E/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: ld.so.1: perl: fatal: libssl.so.0.9.8: open failed: No such file or directory at /usr/local/lib/perl5/5.8.8/i86pc-solaris/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at t/00-basic.t line 6.
I've verified that ld.so.1 and libssl.so.0.9.8 both exist and as far I can tell, OpenSSL is installed (pkginfo shows 'OpenSSL Libraries (Usr)').
Anyone have any thoughts on what the problem may be?
Dave
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
其他地方我们发现包含 SSL 库文件的目录是不在
LD_LIBRARY_PATH
中。解决方案是:
这是
Makefile.PL
报告的库位置。我将在文档和 Makefile.PL 输出中添加注释。
感谢您的报告和提供的详细信息,使我最终能够弄清楚这些测试失败的原因。
现在,我需要弄清楚如何确保测试脚本使用正确的 LD_LIBRARY_PATH 运行。
Elsewhere we figured out that the directory containing the SSL library files was not in
LD_LIBRARY_PATH
.The solution was:
which is the library location reported by
Makefile.PL
.I will add a note to the documentation and
Makefile.PL
output.Thank you for your report and providing detailed information that enabled me to finally figure out what was going on with those test failures as well.
Now, I need to figure out how to ensure that the test scripts run with the correct
LD_LIBRARY_PATH
.