ldd kann Bibliothek in LD_LIBRARY_PATH nicht finden
Ich versuche, ein System zum Laufen zu bringen, und habe Probleme mit den gemeinsam genutzten OpenMotif-Bibliotheken. Ich habe ihr Verzeichnis in LD_LIBRARY_PATH, aber es kann sie immer noch nicht finden.
Hier ist ein Beispiel:
<code>[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/ </code>
Ich mache wahrscheinlich etwas Dummes, aber mir fällt nichts anderes ein, um es zu versuchen.
BEARBEITEN: Um einige der unten gestellten Fragen zu beantworten:
<code>[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 </code>
Ok, habe gerade versucht, eine der ausführbaren Dateien auszuführen:
<code># ./bin/nco_xigen /opt/netcool//omnibus/platform/linux2x86/bin/nco_xigen: error while loading shared libraries: libXm.so.3: wrong ELF class: ELFCLASS64 </code>
Ist das eine 32-Bit / 64-Bit-Sache?