Recently I faced this problem while trying to start MySQL Database Instance on a new Linux Environment :

error while loading shared libraries: cannot open shared object file: No such file or directory


In the below step, we can see ncurses 6.1 library is installed, but no is present:

[root@jack ~]# ls -l /usr/lib64/libncurses*
lrwxrwxrwx. 1 root root   17 Jul 26 2021 /usr/lib64/ ->
-rwxr-xr-x. 1 root root 216912 Jul 26 2021 /usr/lib64/
lrwxrwxrwx. 1 root root   18 Jul 26 2021 /usr/lib64/ ->
-rwxr-xr-x. 1 root root 300104 Jul 26 2021 /usr/lib64/


As they are backward compatible, if libncurses6 is present, a symlink can be created for to (the specific version may vary depending on installation.

root@jack ~]# ln -s /usr/lib64/ /usr/lib64/