Spectrum install completes but with "error while loading shared libraries: libncurses.so.5"
search cancel

Spectrum install completes but with "error while loading shared libraries: libncurses.so.5"

book

Article ID: 408603

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

Spectrum installation completes but with error:

Remote execute failed: no error string returned

SPC-INT-20030: Installation failed

SPC-INT-20065: The installation of Spectrum is finished, but some errors occurred during the install.  Please see the installation log for details.

Installation complete

 

Install Summary:

Installation failure

Looking at the install log:

********** Started: Wed Aug 27 07:21:40 2025 ****
running Custom Script Install-Tools/CUS/mysql.cus

/usr/Spectrum/mysql/bin/mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Error(s) occurred. Please see /usr/Spectrum/Install-Tools/LOGS/24.3.12.0. 14_20250827/mysql.log.

Script Install-Tools/CUS/mysql.cus has FAILED
********* Completed: Wed Aug 27 07:22:17 2025 **

********* Started: Wed Aug 27 07:22:17 2025 ****
running Custom Script Install-Tools/CUS/jre-securerandom. cus

Modifying the Java Secure Random source
/usr/Spectrum/Java/jre/lib/security/java.security

Environment

DX NetOps Spectrum 24.3.x
Red Hat Enterprise Linux (RHEL) 9.x

Cause

The libncurses library maybe installed but on RHEL 9.x, the necessary softlinks maybe missing for libncurses.so.5.

Resolution

Need to create softlinks as these are missing in RHEL 9.6

sudo ln -s "/usr/lib64/libncurses.so.6.2" "/usr/lib64/libncurses.so.5"
sudo ln -s "/usr/lib64/libtinfo.so.6.2" "/usr/lib64/libtinfo.so.5"