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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-19-2009, 05:19 PM
|
#1
|
Member
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102
Rep:
|
error while loading shared libraries: libpthread.so.0: ?????
/usr/contrib/Cadence/tools/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
I've added /usr/lib to my LD_LIBRARY_PATH, but in viewing /usr/lib, there is no libpthread.so.0 only libpthread.so. I don't know if that matters or how these files work but just guessing at it.
Linux HOSTNAME 2.6.18-53.el5 #1 SMP Mon Nov 12 02:14:55 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
I'm running CentOS on a 64 bit machine.
Any ideas? Thanks.
|
|
|
02-19-2009, 05:47 PM
|
#2
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
Is it in /lib ?
|
|
|
02-19-2009, 06:47 PM
|
#3
|
Member
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102
Original Poster
Rep:
|
Okay, so you were right it was in /lib/ but since I'm running on a 64 bit machine I added /lib64/ to my PATH and LD_LIBRARY_PATH. I then got the following error
wrong ELF class: ELFCLASS64
So I figured I guess I should use the 32 bit version and changed the env variables to have /lib/ instead of /lib64/.
But that brings me back to the original error
error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
|
|
|
02-19-2009, 06:59 PM
|
#4
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
What tells you ldd on this java binary? And do you have something that starts with libpthread in lib64.
Last edited by nx5000; 02-19-2009 at 07:01 PM.
|
|
|
02-19-2009, 07:02 PM
|
#5
|
Member
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102
Original Poster
Rep:
|
What do you mean by "ldd on this java binary"?
Also, in /lib64/ I have the following files that match
[USERNAME@HOSTNAME /]$ ls /lib64/libpthread
libpthread-2.5.so libpthread.so.0
|
|
|
02-19-2009, 07:13 PM
|
#6
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
ldd /usr/contrib/..../java
|
|
|
02-19-2009, 07:16 PM
|
#7
|
Member
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102
Original Poster
Rep:
|
That's a cool command. This is the ldd output
It would seem it's trying to depend on the 32 bit version when it should be trying for the 64bit version. Am I right?
linux-gate.so.1 => (0xffffe000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00d4c000)
libdl.so.2 => /lib/libdl.so.2 (0x00d65000)
libc.so.6 => /lib/libc.so.6 (0x00bde000)
/lib/ld-linux.so.2 (0x00bc0000)
|
|
|
02-19-2009, 07:54 PM
|
#8
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
Yes there is some kind of conflict. Not sure where.. Crapy software that installs its own java.. Maybe cadence only works with 32 bits? Reinstall java 32 in /usr/local and change jre home to point there? Call the support? Sorry not idea right now..
|
|
|
02-19-2009, 08:04 PM
|
#9
|
Member
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102
Original Poster
Rep:
|
I'll have to give those a try.
The funny thing about support with Cadence. They will not even talk to you if you're not using RHEL 4 or 5. Even though CentOS really is RH they don't believe you. I can't dump my install right now.
|
|
|
02-19-2009, 08:09 PM
|
#10
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
My company had cadence running in solaris i think. Looks like google gives a lot of results, probably a java forum would be the place to ask
|
|
|
All times are GMT -5. The time now is 05:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|