# mysql安装路径/bin cd /app/mysql8.0/bin/ # 查看依赖库文件 ldd mysql
linux-vdso.so.1 (0x00007ffd0fbd8000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f153bf86000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f153bf80000) libcrypto.so.1.1 => /app/mysql-8.0.28/bin/./../lib/private/libcrypto.so.1.1 (0x00007f153bb23000) libssl.so.1.1 => /app/mysql-8.0.28/bin/./../lib/private/libssl.so.1.1 (0x00007f153b893000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f153b877000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f153b86d000) libtinfo.so.5 => not found # 缺少该库文件 libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f153b689000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f153b53a000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f153b51f000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f153b32d000) /lib64/ld-linux-x86-64.so.2 (0x00007f153bfc3000)
# 查看本地Linux是否存在 libtinfo.so.5 locate libtinfo.so.5 # sudo mv libtinfo.so.5 /usr/lib64/libtinfo.so.5 # 建立软连接 sudo ln /usr/lib/x86_64-linux-gnu/libtinfo.so.6.2 /usr/lib/libtinfo.so.5 cd /usr/lib/ sudo chmod 777 libtinfo.so.5