在 Solaris 10 上安装 Perl's Crypt::SSLeay 时出现问题

发布于 2024-10-08 11:25:23 字数 1002 浏览 7 评论 0原文

我正在尝试安装 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

江城子 2024-10-15 11:25:23

其他地方我们发现包含 SSL 库文件的目录是不在LD_LIBRARY_PATH中。

解决方案是:

setenv LD_LIBRARY_PATH /usr/local/ssl/lib

这是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:

setenv LD_LIBRARY_PATH /usr/local/ssl/lib

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文