zabbix3.2源码安装时报错:MySQL library not found
环境:CentOS7.2,MySQL5.7.19(rpm安装),zabbix3.2
执行./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql后报错内容
。。。。。。
checking for mysql_config... no
configure: error: MySQL library not found
解决:
查看安装了那些mysql包,因为使用的是rpm方式安装的
# rpm -qa|grep mysql
mysql-community-client-5.7.19-1.el7.x86_64
mysql-community-common-5.7.19-1.el7.x86_64
mysql-community-libs-5.7.19-1.el7.x86_64
mysql-community-server-5.7.19-1.el7.x86_64
缺少了mysql-community-devel-5.7.19-1.el7.x86_64包,安装即可
# rpm -ivh mysql-community-devel-5.7.19-1.el7.x86_64