MySQL安装遇到的问题
前言
版本说明
linux=Amazon Linux MySQL=mysql-8.0.18-linux-glibc2.12-x86_64
相关链接:
- libtinfo.so.5 下载链接:链接:https://share.weiyun.com/5DmJHXW 密码:z92fxn
问题
问题详情
./mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
解决方案
查找 MySQL 依赖
# 通过 ldd mysql 查找 MySQL 依赖 [ec2-user@ip-172-31-25-170 bin]$ ldd mysql linux-vdso.so.1 (0x00007fff871c4000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f13381f7000) librt.so.1 => /lib64/librt.so.1 (0x00007f1337fef000) libssl.so.1.1 => /usr/local/mysql/bin/./../lib/private/libssl.so.1.1 (0x00007f1337d65000) libcrypto.so.1.1 => /usr/local/mysql/bin/./../lib/private/libcrypto.so.1.1 (0x00007f13378ce000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f13376ca000) libtinfo.so.5 => not found libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f1337348000) libm.so.6 => /lib64/libm.so.6 (0x00007f1337008000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f1336df2000) libc.so.6 => /lib64/libc.so.6 (0x00007f1336a47000) /lib64/ld-linux-x86-64.so.2 (0x00007f1338415000)