【发布时间】:2019-09-07 11:57:04
【问题描述】:
简述:
在centos7上安装mysql(不带yum),我已经安装了numactl,但还是报错:
Installing MySQL system tables.../usr/local/mysql/bin/mysqld:
error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
问题详情:
我在 linux centos7(不带 yum)上安装 mysql,初始化 scripts/mysql_install_db 时,出现错误信息:
Installing MySQL system tables.../usr/local/mysql/bin/mysqld:
error while loading shared libraries: libnuma.so.1: cannot open shared object file:
No such file or directory ;
我搜索了一些 numactl 需要的建议。但我已经安装了 numactl:
[root@foo scripts]# sudo yum install numactl -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package numactl-2.0.9-7.el7.x86_64 already installed and latest version
Nothing to do
再次运行 scripts/mysql_install_db 时,错误信息仍然出现。
有什么建议吗?
【问题讨论】:
-
ldd /usr/local/mysql/bin/mysqld和find /usr/lib -name 'libnuma.so*'的输出是什么? -
假设一个 Autotools 项目...你应该说明你是如何配置 MySQL 和 libnuma 的。
-
嗨@Danila Kiver
ldd /usr/local/mysql/bin/mysqld--> 没有这样的文件或目录和find /usr/lib -name 'libnuma.so*'--> 空白输出 -
libnuma.so.1由包提供numactl-libs.... :# yum provides */libnuma.so.1 -
# yum install numactl-libs.i686 numactl-libs.x86_64