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

mm
Hi All… I have been working the IT Industry since last ten years… Specialized in Linux, Cloud Infrastructure and Solution Design.
On the hobby friend, I do research on IOT, Micro-controllers, Electronics etc.
Music is my passion..Connect me on..

4 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!!!

Avatar

dmitry

October 20th, 2013 at 10:05 pm

really works))

Avatar

mohan

December 27th, 2014 at 12:48 am

Hi

The above its not working. there is no ibncurses.so.5 in my server how can create the symlink without the ibncurses.so.5 so please guide me to out the problem

Comment Form

*

Authors

mm
Presoon John

Hi All... I have been working the IT Industry since last ten years... Specialized in Linux, Cloud Infrastructure and Solution Design.
On the hobby friend, I do research on IOT, Micro-controllers, Electronics etc.
Music is my passion..Connect me on..

Access this post via Mobile

Scan the QR Code
QR Code Generator

Categories