Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 不同的perl版本不共享已安装的RPM_Linux_Perl_Coredump_Openwsman - Fatal编程技术网

Linux 不同的perl版本不共享已安装的RPM

Linux 不同的perl版本不共享已安装的RPM,linux,perl,coredump,openwsman,Linux,Perl,Coredump,Openwsman,我有RHEL 32位操作系统,我安装了libwsman1和openwsmanperl rpm,以便在我的perl脚本中使用wsman查询。我安装了两个版本的perl-perl5.8.8和perl5.14.4。我的perl脚本在perl5.8.8中运行良好,但在perl5.14.4中执行时会出现“分段错误(核心转储)”。在我看来,这两个perl版本都无法使用模块/库。 如果我的假设是正确的,如何使它对两个perl模块都可用? 我在5月份的linux系统中看到了这个问题,在那里有两个不同版本的per

我有RHEL 32位操作系统,我安装了libwsman1和openwsmanperl rpm,以便在我的perl脚本中使用wsman查询。我安装了两个版本的perl-perl5.8.8和perl5.14.4。我的perl脚本在perl5.8.8中运行良好,但在perl5.14.4中执行时会出现“分段错误(核心转储)”。在我看来,这两个perl版本都无法使用模块/库。 如果我的假设是正确的,如何使它对两个perl模块都可用? 我在5月份的linux系统中看到了这个问题,在那里有两个不同版本的perl可用。不过,如果我在该系统上只有perl5.14.4,它就可以正常工作。 我尝试使用gdb获取代码转储,输出如下- 正在从/usr/bin/perl5.14.4读取符号…(未找到调试符号)…已完成

非常感谢您的帮助


谢谢…

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


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

谢谢。有没有办法构建这些库,可以与任何版本的perl一起使用。@user1929570:不,XS库不可能。
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 ?? ()