鲲鹏社区首页
中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

安装MySQL线程池插件时提示undefined symbol: numa_num_configured_cpus的解决方法

问题现象描述

安装MySQL线程池插件过程中,执行INSTALL PLUGIN thread_pool SONAME "thread_pool.so";语句时,提示“undefined symbol: numa_num_configured_cpus”。具体报错如下:

Can't open shared library'/usr/local/mysql/lib/plugin/thread_pool.so'(errno: 2 /usr/local/mysql/lib/plugin/thread_pool.so:undefined symbol: numa_num_configured_cpus)

关键过程、根本原因分析

应用MySQL线程池插件Patch,要求编译环境已安装numactl库。若MySQL程序在编译时未安装numactl依赖,将导致无NUMA库加载的MySQL程序在安装线程池的so文件时提示“undefined symbol: numa_num_configured_cpus”。

结论、解决方案及效果

  1. 安装numactl库。
    yum install -y numactl numactl-devel*
  2. 重新编译MySQL,具体操作请参见《MySQL 8.0.x 移植指南》。