error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory

error while loading shared libraries: libnuma.so.1: cannot open shared object file

在初始化mysql5.7的时候,报以下错误

error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
      
      
  • 1

备注:
初始化参数为

/usr/local/mysql/bin/mysqld --initialize --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data/ --user=mysql
      
      
  • 1

这里写图片描述

原因:

yum 安装的libnuma.so.1,但安装时默认安装的是32的,但db2需要的是64位的
      
      
  • 1

解决办法:

1.如果已经安装了libnuma.so.1,先yum remove libnuma.so.1
2.yum -y install numactl.x86_64
      
      
  • 1
  • 2
发布了323 篇原创文章 · 获赞 146 · 访问量 85万+

猜你喜欢

转载自www.cnblogs.com/python001-vip/p/12503198.html