Setting up open-source is always challenging if required libraries, dependencies are not installed then it could be frustrating sometimes.

I was implementing Zabbix  a few weeks back and got this error.

checking for libperfstat 5.2.0.40 fileset...
no checking for libperfstat 5.3.0.60 fileset...
no checking for architecture...
linux (linux-gnu) checking for the linux kernel version... 2.6 family (2.6.32-358.el6.x86_64)
checking for mysql_config... no configure: error: MySQL library not found

Are you also getting the same error?

I spent few hours to find out how to resolve this so thought to share with you. BTW, I used following configure command.

./configure --with-mysql  --enable-server --enable-agent --enable-ipv6 --with-net-snmp --with-libcurl

Solutions

  • Install MySQL-devel package

You can download from

https://www.rpmfind.net/linux/rpm2html/search.php?query=mysql-devel
  • Install MySQL-shared component package

You can download from

http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/mysql-shared

Above link is for Linux 6 (64bit), you may see complete details for different OS/architecture  – http://dev.mysql.com/downloads/mysql/#downloads

Run configure again, hope this helps you.

Reader Interactions

Comments

Comments

Your email address will not be published. Required fields are marked *