LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-19-2009, 05:19 PM   #1
frznchckn
Member
 
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97

Rep: Reputation: 15
Question 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.
 
Old 02-19-2009, 05:47 PM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
Is it in /lib ?
 
Old 02-19-2009, 06:47 PM   #3
frznchckn
Member
 
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97

Original Poster
Rep: Reputation: 15
Unhappy

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
 
Old 02-19-2009, 06:59 PM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
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.
 
Old 02-19-2009, 07:02 PM   #5
frznchckn
Member
 
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97

Original Poster
Rep: Reputation: 15
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
 
Old 02-19-2009, 07:13 PM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
ldd /usr/contrib/..../java
 
Old 02-19-2009, 07:16 PM   #7
frznchckn
Member
 
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97

Original Poster
Rep: Reputation: 15
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)
 
Old 02-19-2009, 07:54 PM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
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..
 
Old 02-19-2009, 08:04 PM   #9
frznchckn
Member
 
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97

Original Poster
Rep: Reputation: 15
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.
 
Old 02-19-2009, 08:09 PM   #10
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 06:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 04:19 PM
gxine: error while loading shared libraries: libmozjs.so: cannot open shared object.. empcrono Slackware 10 11-10-2008 08:33 PM
error while loading shared libraries: libpthread.so.0 balamurugan_r83 Linux - General 1 06-06-2007 02:51 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 08:03 AM


All times are GMT -5. The time now is 09:44 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration