Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-02-2003, 02:15 PM   #1
Registered: Dec 2002
Posts: 71

Rep: Reputation: 15
ps gives me a strange error

When I run "ps aux" or "ps" or even "ps -h" i get the following message:

[root@localhost root]# ps
ps: error while loading shared libraries: cannot open shared object file: No such file or directory
[root@localhost root]#

Any ideas? I tried searching for that lib but can't find it. Why would ps be looking for that?

Old 12-02-2003, 02:28 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi ...

What distro are you using? Did it work at
any time? Did you upgrade/remove any
packages recently?

And as for "Why would it use it?" ... it does
because it was linked against the library.

ldd `which ps`

Old 12-02-2003, 04:06 PM   #3
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Re: ps gives me a strange error

Originally posted by costasm
Why would ps be looking for that?
Probably because ps gets its info from the /proc directory.
Old 12-02-2003, 04:43 PM   #4
Registered: Dec 2002
Posts: 71

Original Poster
Rep: Reputation: 15
I am using RH 9.0.
I did a which ps and executes from /bin/ps

[root@localhost asterisk]# which ps
[root@localhost asterisk]# ps

Yes, I did install a fairly complicated package. Is there something I can look for a clue?

Old 12-03-2003, 01:46 AM   #5
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
On my RedHat 8 system I have a That library is located in /lib. Try looking for it there. If you have a second system, or if a friend has one, try copying the file from it. I don't think I can give you the file since my system has a different version of it. It's not that big (~50kB) so it will fit on a floppy.

Fun fact: you can see what dynamic libraries your executables link against with the command ldd.
~> ldd /bin/ls => /lib/ (0x4002c000) => /lib/ (0x40031000) => /lib/i686/ (0x42000000) => /lib/ (0x40037000)
        /lib/ => /lib/ (0x40000000)
Old 12-03-2003, 07:07 AM   #6
Registered: Dec 2002
Posts: 71

Original Poster
Rep: Reputation: 15
Now I see what the other poster meant by ldd. I thought that was an abbrev to run the 'which ps' command.. duh.

Here is one last question:

I have a suspect that could have cause this. Its an RPM file from Intel for the video card. It messed up my X Window and had to refresh from CDs. How do I see what is inside their RPM file?

I read tha MAN pages. I tried all sorts of options, including -q and and -l.

Do you by any chance have the correct synatx?

Fortunately I have another RH9 running. But I am worried these Intel guys messed up other libraries.

Old 12-03-2003, 07:22 AM   #7
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
i think the best option is to go for a fresh reinstallation


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
A strange error about c++ icoming Programming 5 10-04-2004 07:55 PM
Strange giftd error voyciz Linux - Software 2 07-19-2004 08:20 PM
xine - strange error edigital Linux - Software 6 02-21-2004 09:02 PM
Strange Error..Please HELP!!! skate Linux - Newbie 2 11-23-2003 08:10 AM
2.2 strange error svar Linux - General 0 08-21-2003 01:46 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:13 AM.

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