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

May 14, 2008 on 3:44 am | In Centos, Linux | 1 Comment

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

1 Comment »

RSS feed for comments on this post. TrackBack URI

  1. Hi..
    Thanks its works !

    Comment by Hitesh — April 13, 2010 #

Leave a comment