On few Linux platforms, the following error may be seen: “error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory”

Article: 100056370
Last Published: 2023-09-25
Ratings: 17 17
Product(s): NetBackup & Alta Data Protection

 

Problem

On Linux RHEL 8.0 and above, the following errors may be seen while launching a few NetBackup Utilities:

Error Message

error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

Cause

On RedHat 8 and above, the libncurses.so.5 binary is not available by default. The binaries are required by various NetBackup Utilities to operate.

Following are the dependent library versions available according to platforms.

  • RHEL 7 has libncurses.so.5 as default library.
  • RHEL 8 has libncurses.so.6.1 as the default library. However, libncurses.so.5 is also available for download from RedHat Repository
  • RHEL 9 has libncurses.so.6.2 as the default.

Solution

On RHEL 8.x and above, search for the existing binary libncurses.so.6.x and libtinfo.so.6.x as part of ncurses-libs-6.x rpm package and create a soft link as shown below.

ln -s "/usr/lib64/libncurses.so.6.1" "/usr/lib64/libncurses.so.5"

ln -s "/usr/lib64/libtinfo.so.6.1" "/usr/lib64/libtinfo.so.5"

Was this content helpful?