Cannot find Shared Library: libpthread.so.0
I am trying to install the WebSphere MQ Client on a Red Hat Version 5 server with OS x86_64bit..
When I try the first step of there process it fails trying to find shared libraries: libpthread.so.0
# /tmp/rpm/MQClientwithSSL/mqlicense.sh -accept
/tmp/rpm/MQClientwithSSL/lap/jre/bin/exe/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
ERROR: Installation will not succeed unless the license agreement can be accepted.
The MQ Client is 32 bit, but I am told it should work on 64 bit server...
A locate shows that the module is on the server, both 32 and 64 bit:
# locate libpthread.so.0
/lib/libpthread.so.0
/lib/i686/nosegneg/libpthread.so.0
/lib64/libpthread.so.0
My LD_LIBRARY_PATH was set as:
# echo $LD_LIBRARY_PATH
/opt/CA/SharedComponents/JRE/1.4.2_09/lib/i386/client:/opt/CA/SharedComponents/
JRE/1.4.2_09/lib/i386:/opt/CA/SharedComponents/ccs/dia/dna/lib:/opt/CA/SharedCo
mponents/ccs/dia/lib:/usr/lib:/opt/CA/CAlib:/opt/CA/SharedComponents/lib:/opt/CA/Sh
aredComponents/Csam/SockAdapter/lib
#
The ldd command on this shows the module it's complaining that it can't find, and it's location, so doesn't that mean it actually knows it's location ??
# ldd /tmp/rpm/MQClientwithSSL/lap/jre/bin/exe/java
linux-gate.so.1 => (0xffffe000)
libpthread.so.0 => /lib/libpthread.so.0 (0xf7f96000)
libnsl.so.1 => /lib/libnsl.so.1 (0xf7f7f000)
libdl.so.2 => /lib/libdl.so.2 (0xf7f7b000)
libc.so.6 => /lib/libc.so.6 (0xf7e35000)
/lib/ld-linux.so.2 (0xf7faf000)
#
I did not see /lib in the path, so I added it to the LD_LIBRARY_PATH, but still had the same results:
# export LD_LIBRARY_PATH=/lib:$LD_LIBRARY_PATH
# echo $LD_LIBRARY_PATH
/lib:/opt/CA/SharedComponents/JRE/1.4.2_09/lib/i386/client:/opt/CA/SharedCompon
ents/JRE/1.4.2_09/lib/i386:/opt/CA/SharedComponents/ccs/dia/dna/lib:/opt/CA/Share
dComponents/ccs/dia/lib:/usr/lib:/opt/CA/CAlib:/opt/CA/SharedComponents/lib:/opt/CA
/SharedComponents/Csam/SockAdapter/lib
# /tmp/rpm/MQClientwithSSL/mqlicense.sh -accept
/tmp/rpm/MQClientwithSSL/lap/jre/bin/exe/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
If I add the /lib64 to the path, it finds it, but fails with the following:
error while loading shared libraries: libpthread.so.0: wrong ELF class: ELFCLASS64
Any one have any ideas for help ??
|