【问题标题】:Different perl verions not sharing the installed rpms不同的 perl 版本不共享已安装的 rpm
【发布时间】:2014-11-11 14:08:18
【问题描述】:

我有 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 ?? ()

非常感谢任何帮助。

谢谢...

【问题讨论】:

    标签: linux perl coredump openwsman


    【解决方案1】:

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

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

    【讨论】:

    • 谢谢.. 有没有一种方法可以构建这些可以与任何版本的 perl 一起使用的库。
    • @user1929570:不,XS 库不可能。
    猜你喜欢
    • 2022-01-12
    • 2023-03-10
    • 2015-05-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多