- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Cannot find Shared Library: libpthread.so.0
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 10:01 AM
тАО02-18-2010 10:01 AM
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 ??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 01:40 PM
тАО02-18-2010 01:40 PM
Solutionfor 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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 03:32 PM
тАО02-18-2010 03:32 PM
Re: Cannot find Shared Library: libpthread.so.0
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)
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 06:00 PM
тАО02-18-2010 06:00 PM
Re: Cannot find Shared Library: libpthread.so.0
rpm --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" -q glibc-2.5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2010 04:34 AM
тАО02-19-2010 04:34 AM
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)
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2010 10:33 AM
тАО02-19-2010 10:33 AM
Re: Cannot find Shared Library: libpthread.so.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2010 03:59 PM
тАО02-19-2010 03:59 PM
Re: Cannot find Shared Library: libpthread.so.0
yum install glibc-2.5-42.i386
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2010 02:43 AM
тАО02-20-2010 02:43 AM
Re: Cannot find Shared Library: libpthread.so.0
Thanks