我正在尝试在最新的 Manjaro 系统上启动一个商业应用程序。显然它缺少此应用程序所需的库 (libtinfo.so.5)。因此我“安装”了该库,但一直收到相同的错误。
我得到的错误都是这种类型的:
error: libtinfo.so.5: cannot open shared object file: No such file or directory
我尝试了以下方法:
1)我首先创建了库所在的路径,并将其添加到通过LD_LIBRARY_PATH启动的shell中。
export LD_LIBRARY_PATH=/opt/apps/studio/isotropix/clarisse/lib
ll /opt/apps/studio/isotropix/clarisse/lib
total 728
drwxr-xr-x 2 root root 4096 Nov 21 17:53 ./
drwxr-xr-x 5 root root 4096 Dec 10 00:13 ../
lrwxrwxrwx 1 root root 14 Nov 21 17:51 libform.so.5 -> libform.so.5.9*
-rwxr-xr-x 1 root root 68076 Sep 28 06:43 libform.so.5.9*
lrwxrwxrwx 1 root root 14 Nov 21 17:51 libmenu.so.5 -> libmenu.so.5.9*
-rwxr-xr-x 1 root root 38592 Sep 28 06:43 libmenu.so.5.9*
lrwxrwxrwx 1 root root 19 Nov 21 17:51 libncurses++.so.5 -> libncurses++.so.5.9*
lrwxrwxrwx 1 root root 17 Nov 21 17:51 libncurses.so.5 -> libncurses.so.5.9*
-rwxr-xr-x 1 root root 67668 Sep 28 06:43 libncurses++.so.5.9*
-rwxr-xr-x 1 root root 166060 Sep 28 06:43 libncurses.so.5.9*
lrwxrwxrwx 1 root root 15 Nov 21 17:51 libpanel.so.5 -> libpanel.so.5.9*
-rwxr-xr-x 1 root root 17708 Sep 28 06:43 libpanel.so.5.9*
lrwxrwxrwx 1 root root 13 Nov 21 17:51 libtic.so.5 -> libtic.so.5.9*
-rwxr-xr-x 1 root root 67296 Sep 28 06:43 libtic.so.5.9*
lrwxrwxrwx 1 root root 15 Nov 21 17:51 libtinfo.so.5 -> libtinfo.so.5.9*
-rwxr-xr-x 1 root root 295880 Dec 12 23:02 libtinfo.so.5.9*
但我仍然遇到同样的错误。
然后我将该库直接添加到我的 /usr/lib 目录中。
/usr/lib$ ls -l libtinfo.so.5*
lrwxrwxrwx 1 root root 24 Dec 13 12:16 libtinfo.so.5 -> /usr/lib/libtinfo.so.5.9
-rwxr-xr-x 1 root root 295880 Dec 13 12:15 libtinfo.so.5.9
但仍然出现同样的错误。
因此我尝试启用调试来查看应用程序正在搜索的位置,然后我得到了这个(这只是输出的一个小部分):
5351: find library=libtinfo.so.5 [0]; searching
5351: search path=/home/kcam/Desktop/3party/osl/install_dir/lib/tls/x86_64/x86_64:/home/kcam/Desktop/3party/osl/install_dir/lib/tls/x86_64:/home/kcam/Desktop/3party/osl/install_dir/lib/tls/x86_64:/home/kcam/Desktop/3party/osl/install_dir/lib/tls:/home/kcam/Desktop/3party/osl/install_dir/lib/x86_64/x86_64:/home/kcam/Desktop/3party/osl/install_dir/lib/x86_64:/home/kcam/Desktop/3party/osl/install_dir/lib/x86_64:/home/kcam/Desktop/3party/osl/install_dir/lib:/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/tls/x86_64/x86_64:/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/tls/x86_64:/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/tls/x86_64:/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/tls:/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/x86_64/x86_64:/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/x86_64:/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/x86_64:/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib:/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/tls/x86_64/x86_64:/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/tls/x86_64:/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/tls/x86_64:/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/tls:/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/x86_64/x86_64:/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/x86_64:/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/x86_64:/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib (RPATH from file liboslcomp.so)
5351: trying file=/home/kcam/Desktop/3party/osl/install_dir/lib/tls/x86_64/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/Desktop/3party/osl/install_dir/lib/tls/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/Desktop/3party/osl/install_dir/lib/tls/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/Desktop/3party/osl/install_dir/lib/tls/libtinfo.so.5
5351: trying file=/home/kcam/Desktop/3party/osl/install_dir/lib/x86_64/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/Desktop/3party/osl/install_dir/lib/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/Desktop/3party/osl/install_dir/lib/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/Desktop/3party/osl/install_dir/lib/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/tls/x86_64/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/tls/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/tls/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/tls/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/x86_64/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/oiio/install_dir/lib/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/tls/x86_64/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/tls/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/tls/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/tls/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/x86_64/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/x86_64/libtinfo.so.5
5351: trying file=/home/kcam/jupiter/share/3rdparty_build/linux64/llvm-3.5.0.src/lib/libtinfo.so.5
5351: search path=tls/x86_64/x86_64:tls/x86_64:tls/x86_64:tls:x86_64/x86_64:x86_64:x86_64: (RPATH from file /opt/apps/commercial/isotropix/clarisse/3.6sp6/clarisse.bin)
5351: trying file=tls/x86_64/x86_64/libtinfo.so.5
5351: trying file=tls/x86_64/libtinfo.so.5
5351: trying file=tls/x86_64/libtinfo.so.5
5351: trying file=tls/libtinfo.so.5
5351: trying file=x86_64/x86_64/libtinfo.so.5
5351: trying file=x86_64/libtinfo.so.5
5351: trying file=x86_64/libtinfo.so.5
5351: trying file=libtinfo.so.5
5351: search path=/opt/apps/commercial/isotropix/clarisse/3.6sp6:/opt/apps/commercial/isotropix/clarisse/3.6sp6/python:/opt/apps/studio/isotropix/clarisse/lib (LD_LIBRARY_PATH)
5351: trying file=/opt/apps/commercial/isotropix/clarisse/3.6sp6/libtinfo.so.5
5351: trying file=/opt/apps/commercial/isotropix/clarisse/3.6sp6/python/libtinfo.so.5
5351: trying file=/opt/apps/studio/isotropix/clarisse/lib/libtinfo.so.5
5351: search cache=/etc/ld.so.cache
5351: search path=/usr/lib (system search path)
5351: trying file=/usr/lib/libtinfo.so.5
从这看来,它似乎确实在这两个位置进行查找,但我无法判断它是否真的找到了任何东西。基于它即使在检查了有效路径后仍未停止搜索的事实,我相信还有其他事情正在发生,但我不知道是什么。也许它找到了文件但拒绝了它,因为它是错误的版本?但我本来希望出现不同的错误消息。
如能提供任何线索我将非常感激!