我正在尝试使系统正常运行,并且在OpenMotif共享库中遇到问题.我的目录在LD_LIBRARY_PATH,但仍然找不到.
以下是一个例子:
[root@intrepid netcool]# ldd /opt/netcool/omnibus/platform/linux2x86/bin/nco_* |grep 'not found' libXm.so.3 => not found libXpm.so.4 => not found libXm.so.3 => not found libXm.so.3 => not found libXpm.so.4 => not found libXm.so.3 => not found libXm.so.3 => not found libXm.so.3 => not found libXm.so.3 => not found [root@intrepid netcool]# find /usr/ -name libXm.so.3 /usr/lib64/libXm.so.3 [root@intrepid netcool]# find /usr/ -name libXpm.so.4 /usr/lib64/libXpm.so.4 [root@intrepid netcool]# echo $LD_LIBRARY_PATH /opt/netcool/omnibus//platform/linux2x86/lib/:/opt/netcool//platform/linux2x86/lib/:/usr/lib/:/usr/lib64/
我可能在做一些愚蠢的事情,但我不能想到别的尝试.
编辑:回答下面提到的几个问题:
[root@intrepid netcool]# export LD_LIBRARY_PATH [root@intrepid netcool]# ldd /opt/netcool/omnibus/platform/linux2x86/bin/nco_* |grep 'not found' libXm.so.3 => not found libXpm.so.4 => not found libXm.so.3 => not found libXm.so.3 => not found libXpm.so.4 => not found libXm.so.3 => not found libXm.so.3 => not found libXm.so.3 => not found libXm.so.3 => not found [root@intrepid netcool]# ldconfig [root@intrepid netcool]# ldd /opt/netcool/omnibus/platform/linux2x86/bin/nco_* |grep 'not found' libXm.so.3 => not found libXpm.so.4 => not found libXm.so.3 => not found libXm.so.3 => not found libXpm.so.4 => not found libXm.so.3 => not found libXm.so.3 => not found libXm.so.3 => not found libXm.so.3 => not found
好的,只是试图运行一个可执行文件:
# ./bin/nco_xigen /opt/netcool//omnibus/platform/linux2x86/bin/nco_xigen: error while loading shared libraries: libXm.so.3: wrong ELF class: ELFCLASS64
这是32位/ 64位的东西吗?
您是否导出LD_LIBRARY_PATH? export关键字告诉Bash将任何变量发送到子进程 – 否则ldd将永远不会看到LD_LIBRARY_PATH.
原文链接:https://www.f2er.com/bash/386352.html