error while loading shared libraries: libtinfo.so.6
说明
Installing SAS 5.1 on Linux versions that do not have ncurses-lib version 6.x, such as RHEL 7.x produce the following error while executing certain vastool commands: # /opt/quest/bin/vastool -d5 ktutil list 2022-09-27 13:40:25 [debug] (9664) Log initialized, enhanced_mode: 0 2022-09-27 13:40:25 [debug] (9664) vas_process_wait_for: WEXITSTATUS returned 127 /opt/quest/bin/.ktutil: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory 2022-09-27 13:40:25 [debug] (9664) vastool command: /opt/quest/bin/vastool -d5 ktutil list
解决办法
Note: this issue has been addressed in Authentication Services 5.1.1 via Defect ID # 326808.
One solution and one workaround exist for versions prior to 5.1.1:
Solution: The following is a permanent fix for RHEL based installations (SUSE is more forgiving on ncurses libs): Note: ncurses-libs 6.x may not be available for RHEL 7.x and derivatives.
# Install or upgrade to ncurses-libs version 6.1 or higher.
Workaround: The following is a confirmed workaround on RHEL version 7: ln -s /usr/lib64/libtinfo.so.5.9 /opt/quest/lib64/libtinfo.so.6
On RHEL version 6: ln -s /lib64/libtinfo.so.5.7 /opt/quest/lib64/libtinfo.so.6
RHEL OS 8.x and 9.x do not have this issue.
On UBUNTU 18.04 libtinfo.so.6 is not included. Only on Ubuntu 20 So for version 18.04.X execute the following: sudo ln -s /lib/x86_64-linux-gnu/libtinfo.so.5.9 /opt/quest/lib64/libtinfo.so.6