繁体   English   中英

不同的perl版本不共享已安装的rpm

[英]Different perl verions not sharing the installed rpms

我有RHEL 32位操作系统,已经安装了libwsman1和openwsman-perl rpm,以便在我的perl脚本中使用wsman查询。 我安装了两个版本的perl-perl5.8.8和perl5.14.4。 我的perl脚本可以在perl5.8.8上正常工作,但是当我使用perl5.14.4执行该脚本时会给出“分段错误(核心转储)。在我看来,模块/库对两个perl版本都不可用。如果我的假设是是的,我如何在两个Perl模块上都可以使用它?在可能有两个不同版本的Perl的linux系统中,我看到了这个问题。尽管如果我在该系统上只有perl5.14.4,它也可以正常工作。使用gdb进行代码转储时,输出类似于以下内容-从/usr/bin/perl5.14.4 ...读取符号(未找到调试符号)...完成。

warning: .dynamic section for "/lib/libc.so.6" is not at the expected address

warning: difference appears to be caused by prelink, adjusting expectations

warning: .dynamic section for "/usr/lib/libgssapi_krb5.so.2" is not at the expected address

warning: difference appears to be caused by prelink, adjusting expectations

warning: .dynamic section for "/lib/libcrypto.so.6" is not at the expected address

warning: difference appears to be caused by prelink, adjusting expectations

warning: .dynamic section for "/usr/lib/libz.so.1" is not at the expected address

warning: difference appears to be caused by prelink, adjusting expectations
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
.
.
.
.
Loaded symbols for /lib/libkeyutils.so.1
Reading symbols from /lib/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libselinux.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libselinux.so.1
Reading symbols from /lib/libsepol.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libsepol.so.1
Core was generated by `perl5.14.4 openwsman_client_FAN.pl'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000 in ?? ()

任何帮助深表感谢。

谢谢 ...

不同版本的Perl无法共享XS库。 如果您的供应商没有同时为两个版本的Perl提供库,则必须自己编译它们。 cpan应该为您完成艰苦的工作。

如果您不喜欢一直使用环境变量和cpan配置, perlbrew可以使您的生活更轻松。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM