我有RHEL 32位操作系统,我安装了libwsman1和openwsman-perl rpm以在我的perl脚本中使用wsman查询。我安装了两个版本的perl - perl5.8.8和perl5.14.4。我的perl脚本在perl5.8.8下运行正常,但在用perl5.14.4执行它时会给出"分段错误(核心转储)。我觉得模块/库不适用于perl版本。 如果我的假设是正确的,我怎样才能将它们用于perl模块? 我在may linux系统中看到了这个问题,其中有两个不同版本的perl可用。虽然如果我在该系统上只有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 ?? ()
非常感谢任何帮助。
谢谢...
答案 0 :(得分:2)
不同版本的Perl无法共享XS库。如果您的供应商没有为它们提供两个版本的Perl,那么您必须自己编译它们。 cpan
应该为你努力工作。
perlbrew可以让你的生活更轻松。