Operating System - Linux
1748128 Members
3678 Online
108758 Solutions
New Discussion юеВ

Re: Cannot find Shared Library: libpthread.so.0

 
SOLVED
Go to solution
MikeL_4
Super Advisor

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/SharedComponents/ccs/dia/lib:/usr/lib:/opt/CA/CAlib:/opt/CA/SharedComponents/lib:/opt/CA/SharedComponents/Csam/SockAdapter/lib
#

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/SharedComponents/JRE/1.4.2_09/lib/i386:/opt/CA/SharedComponents/ccs/dia/dna/lib:/opt/CA/SharedComponents/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 ??
7 REPLIES 7
Steven E. Protter
Exalted Contributor
Solution

Re: Cannot find Shared Library: libpthread.so.0

Shalom,

for a straight 32 bit installation, your approach appears to be correct.

What I don't see is what update of RHEL 5, x86_64 you are using. You may want to update your system to be more current to resolve this situation.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
MikeL_4
Super Advisor

Re: Cannot find Shared Library: libpthread.so.0

I just ran a yum update on this server a month ago, so I wouldn't think it would be that...

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)
#
Randy Jones_3
Trusted Contributor

Re: Cannot find Shared Library: libpthread.so.0

What do you see when you run:

rpm --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" -q glibc-2.5
MikeL_4
Super Advisor

Re: Cannot find Shared Library: libpthread.so.0


# rpm --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" -q glibc-2.5
glibc-2.5-42.el5_4.3 (x86_64)
glibc-2.5-42.el5_4.3 (i686)
#
Randy Jones_3
Trusted Contributor

Re: Cannot find Shared Library: libpthread.so.0

Just checking that both 32- and 64-bit flavors were present and the same release, and they are. There is a -47 available of that package. You might try a "yum check-update glibc-2.5" and if there are no problematic dependencies, go ahead and update it. Perhaps the reinstall will sort something out.
Randy Jones_3
Trusted Contributor

Re: Cannot find Shared Library: libpthread.so.0

Wait a minute... I cleaned my glasses and see you have x86_64 and i686 packages. You'll want the i386 package to satisfy the 32-bit apps. Try your app again after:

yum install glibc-2.5-42.i386
MikeL_4
Super Advisor

Re: Cannot find Shared Library: libpthread.so.0

Was able to resolve by obtaining a newer version of software for WebSphere MQ Client, it installed without any issues..

Thanks