LinuxQuestions.org
Visit Jeremy's Blog.
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 12-02-2003, 03:15 PM   #1
costasm
Member
 
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: libproc.so.2.0.6: 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?

Thanks
 
Old 12-02-2003, 03:28 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
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`



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

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

Quote:
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, 05:43 PM   #4
costasm
Member
 
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
/bin/ps
[root@localhost asterisk]# ps

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

Thanks.
 
Old 12-03-2003, 02:46 AM   #5
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
On my RedHat 8 system I have a libproc.so.2.0.7. 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.
Code:
~> ldd /bin/ls
        libtermcap.so.2 => /lib/libtermcap.so.2 (0x4002c000)
        libacl.so.1 => /lib/libacl.so.1 (0x40031000)
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        libattr.so.1 => /lib/libattr.so.1 (0x40037000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Regards
Martin
 
Old 12-03-2003, 08:07 AM   #6
costasm
Member
 
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.

Thanks
 
Old 12-03-2003, 08:22 AM   #7
jayakrishnan
Member
 
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
 
  


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


All times are GMT -5. The time now is 11:01 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration