./mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
时间: 2023-09-11 11:03:45 浏览: 211
这个错误提示表明在加载MySQL时缺少libtinfo.so.5共享库文件。有几种方法可以解决这个问题。
方法一是安装缺少的包。根据引用和的信息,可以使用以下命令安装libtinfo.so.5包:
sudo yum install ncurses-compat-libs
方法二是复制或创建软链接。根据引用的信息,可以使用以下命令复制或创建软链接:
sudo cp /lib64/libtinfo.so.6 /lib64/libtinfo.so.5
或者
sudo ln -s /lib64/libtinfo.so.6 /lib64/libtinfo.so.5
这样做可以将libtinfo.so.6复制为libtinfo.so.5,或者创建一个指向libtinfo.so.6的软链接libtinfo.so.5。
以上两种方法都可以解决缺少libtinfo.so.5共享库文件的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such](https://blog.csdn.net/llliuhuiii/article/details/108808567)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file](https://blog.csdn.net/z13615480737/article/details/126817324)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文