---
title: 安装MySQL线程池插件时提示undefined symbol: numa_num_configured_cpus的解决方法
description: "安装MySQL线程池插件过程中，执行INSTALL PLUGIN thread_pool SONAME \"thread_pool.so\";语句时，提示“undefined symbol: numa_num_configured_cpus”。具体报错如下："
url: https://www.hikunpeng.com/document/detail/zh/kunpengdbs/troubleshooting/trouble/boostkit_database_troublecase_022.html
sourcePath: /source/zh/kunpengdbs/troubleshooting/trouble/boostkit_database_troublecase_022.html
indexId: 44a724cecdd678da0a879aa3ca75d90b5a480448ca7cc183b4d780283a4d292484
---
# 安装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库。
  1 yum install -y numactl numactl-devel*

2. 重新编译MySQL，具体操作请参见《MySQL 8.0.x 移植指南(https://www.hikunpeng.com/document/detail/zh/kunpengdbs/ecosystemEnable/MySQL/kunpengmysql8017_02_0008.html)》。
