LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-18-2010, 05:46 PM   #1
lensem
Member
 
Registered: Apr 2008
Location: Orlando, Fl
Posts: 52

Rep: Reputation: 15
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 ??
 
Old 02-19-2010, 01:34 PM   #2
jiobo
Member
 
Registered: Nov 2008
Posts: 180

Rep: Reputation: 36
Would read man page on ldconfig and run ldconfig. Then try again.

Code:
man ldconfig
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libpthread.so.0: ????? frznchckn Linux - Software 9 02-19-2009 07:09 PM
trying to find which package has shared library BashTin Slackware 4 06-12-2007 07:30 AM
error while loading shared libraries: libpthread.so.0 balamurugan_r83 Linux - General 1 06-06-2007 01:51 AM
strange linking error -- can not find shared library George2 Programming 1 07-10-2006 11:24 AM
how to find what shared library is in memory Patrick Bulteel AIX 3 10-26-2005 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration