【问题标题】:Error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory加载共享库时出错:libnuma.so.1:无法打开共享对象文件:没有这样的文件或目录
【发布时间】: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/mysqldfind /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

标签: mysql linux centos7


【解决方案1】:

我解决了这个问题:

sudo apt-get install libnuma-dev

【讨论】:

  • yum install numactl 用于基于 RedHat 的 Linux 发行版。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-06-07
  • 2015-08-31
  • 1970-01-01
  • 2019-02-16
  • 2015-10-28
  • 1970-01-01
相关资源
最近更新 更多