LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   top: error while loading shared libraries: libproc.so.2.0.6: cannot open shared objec (https://www.linuxquestions.org/questions/linux-newbie-8/top-error-while-loading-shared-libraries-libproc-so-2-0-6-cannot-open-shared-objec-822898/)

ramesh_india2020 07-29-2010 01:44 PM

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

crts 07-29-2010 01:53 PM

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?

GrapefruiTgirl 07-29-2010 01:55 PM

Looks like the procps package is not installed, or is corrupted. Install that using your package manager, and then try.

ramesh_india2020 07-29-2010 02:03 PM

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

crts 07-29-2010 02:12 PM

Quote:

Originally Posted by ramesh_india2020 (Post 4049347)
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.

ramesh_india2020 07-29-2010 02:45 PM

Quote:

Originally Posted by crts (Post 4049355)
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

GrapefruiTgirl 07-29-2010 02:49 PM

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.


All times are GMT -5. The time now is 01:34 PM.