top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: Error 40

May 14, 2008 | In: Centos, Linux

This error is received when top command is executed.

top
top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: Error 40

Fix.

locate libncurses.so.5

lib/libncurses.so.5
/usr/lib/libncurses.so.5
/usr/lib/libncurses.so.5.5

create symblinks
ln -s /lib/libncurses.so.5 /lib/libncurses.so.4
ln -s /usr/lib/libncurses.so.5 /usr/lib/libncurses.so.4

the location may be different. Just create symblink from libncurses.so.4 to libncurses.so.5

load the configuration
ldconfig

2 Responses to top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: Error 40

Avatar

Hitesh

April 13th, 2010 at 8:29 pm

Hi..
Thanks its works !

Avatar

riki rusdian

June 24th, 2011 at 9:09 pm

wow… thanks man.. its works!!!

Comment Form