top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: Error 40
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
Hitesh
April 13th, 2010 at 8:29 pm
Hi..
Thanks its works !
riki rusdian
June 24th, 2011 at 9:09 pm
wow… thanks man.. its works!!!