LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-29-2010, 01:44 PM   #1
ramesh_india2020
Member
 
Registered: Jan 2006
Posts: 39

Rep: Reputation: 1
top: error while loading shared libraries: libproc.so.2.0.6: cannot open shared objec


top: error while loading shared libraries: libproc.so.2.0.6: cannot open shared object
Hi ,

I am not able to execute top and ps command. Am getting the below error.

"top: error while loading shared libraries: libproc.so.2.0.6: cannot open shared object file: No such file or directory"

Please help me to solve this issue.

Thanks,
Ramesh
 
Old 07-29-2010, 01:53 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,606

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Hi,

please post the output of
Code:
ldd /usr/bin/top
ll /lib/libproc*
What OS are you using? What version of top are you using?
 
Old 07-29-2010, 01:55 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Looks like the procps package is not installed, or is corrupted. Install that using your package manager, and then try.
 
Old 07-29-2010, 02:03 PM   #4
ramesh_india2020
Member
 
Registered: Jan 2006
Posts: 39

Original Poster
Rep: Reputation: 1
Hi,

Thanks for your prompt reply..

This is the output for two commands.

ldd /usr/bin/top
ll /lib/libproc*

root@host1 [~]# ldd /usr/bin/top
libproc.so.2.0.6 => not found
libncurses.so.4 => /lib/libncurses.so.4 (0x0018c000)
libc.so.6 => /lib/tls/libc.so.6 (0x0088a000)
/lib/ld-linux.so.2 (0x00f6f000)
root@host1 [~]# ll /lib/libproc*
/bin/ls: unrecognized prefix: do
/bin/ls: unparsable value for LS_COLORS environment variable
-rwxr-xr-x 1 root root 47892 Jun 3 05:50 /lib/libproc-3.2.3.so*
-rwxr-xr-x 1 root root 47892 Jul 29 09:19 /lib/libproc.so.2.0.6_hacked*


My OS version is Red Hat Enterprise Linux ES release 4 (Nahant Update 8)


Please assist me.

Thnaks,
Ramesh
 
Old 07-29-2010, 02:12 PM   #5
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,606

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Quote:
Originally Posted by ramesh_india2020 View Post
Hi,

Thanks for your prompt reply..

This is the output for two commands.

ldd /usr/bin/top
ll /lib/libproc*

root@host1 [~]# ldd /usr/bin/top
libproc.so.2.0.6 => not found
libncurses.so.4 => /lib/libncurses.so.4 (0x0018c000)
libc.so.6 => /lib/tls/libc.so.6 (0x0088a000)
/lib/ld-linux.so.2 (0x00f6f000)
root@host1 [~]# ll /lib/libproc*
/bin/ls: unrecognized prefix: do
/bin/ls: unparsable value for LS_COLORS environment variable
-rwxr-xr-x 1 root root 47892 Jun 3 05:50 /lib/libproc-3.2.3.so*
-rwxr-xr-x 1 root root 47892 Jul 29 09:19 /lib/libproc.so.2.0.6_hacked*


My OS version is Red Hat Enterprise Linux ES release 4 (Nahant Update 8)


Please assist me.

Thnaks,
Ramesh
Who hacked libproc.so.2.0.6_hacked* and why? It is against LQ rules to assist in hacking systems.
Contact Redhat for assistance, since you are paying for support.
 
Old 07-29-2010, 02:45 PM   #6
ramesh_india2020
Member
 
Registered: Jan 2006
Posts: 39

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by crts View Post
Who hacked libproc.so.2.0.6_hacked* and why? It is against LQ rules to assist in hacking systems.
Contact Redhat for assistance, since you are paying for support.

Hi,

It is not hacked.. I just renamed that file like this.. Please assist me
 
Old 07-29-2010, 02:49 PM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
The fact that the library appears to be renamed, is very likely (related to or fully) the root of your problem. Rename the library back to what it is supposed to be named, and see if the problem goes away. If it does not, remove the procps package using your package manager, and re-install it properly. You cannot just rename system libraries willy-nilly, and not expect problems.

Last edited by GrapefruiTgirl; 07-29-2010 at 02:51 PM.
 
  


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: libgda-4.0.so.4: cannot open shared object file mahesh1234 Linux - Newbie 2 10-23-2013 12:06 AM
top: error while loading shared libraries: libproc.so.2.0.6: cannot open shared objec ramesh_india2020 Linux - Server 1 07-29-2010 01:52 PM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file PaulyWally Debian 2 10-18-2008 06:59 PM
error while loading shared libraries: libgvc.so.3: cannot open shared object file coolrock Slackware 6 01-17-2007 06:10 PM
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 02:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration