一.问题现象
Mysql安装后运行【service mysqld start】启动时,报下面错误
/usr/sbin/mysqld:error while loading shared libraries:libnuma.so.1:
cannot open shared object file: No such file or directory
二.实验环境
操作系统:Red Hat Enterprise Linux Server release 6.1(Santiago)
MySql:5.7.20
三.解决方案
安装依赖文件【numactl-2.0.11-alt1.x86_64.rpm】
1.在线安装
yum install numactl -y
2.离线安装
手动下载离线安装文件,下载地址【https://pkgs.org/download/Numactl】
备注:pkgs.org是一个不错的离线包下载网站。
四.总结
由于我们开发环境不能连接外网,所以在安装过程中出现了一系列的依赖包缺少看似简单却让人头疼的问题,为了解决时间成本,所以拿出来跟大家分享一下。
原文链接:启动MySQL时报libnuma.so cannot open解决方案,转载请注明来源!