In Linux and Networking Last updated:
Share on:
Cloudways offers managed cloud hosting for any size business to host a website or complex web applications.

Setting up open-source is always challenging if required libraries, dependencies are not installed on the server.

Sometime it could be frustrating.

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 a few hours finding out how to resolve this so I thought to share it with you.

I used the following configure command.

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

Solutions

  • Install MySQL-devel package
yum install mysql-devel

If using RHEL/CentOS 8, then you can use DNF

dnf install mysql-devel

If you can’t reach the Internet to download the above then you can manually download the below and install them.

https://www.rpmfind.net/linux/rpm2html/search.php?query=mysql-devel
http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/mysql-shared

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

Configure again, and it should be ok.

If you are interested in learning Zabbix, then check out this Udemy course.

Share on:
  • Chandan Kumar
    Author
    Chandan Kumar is the founder of Geekflare. He’s helped millions to excel in the digital realm. Passionate about technology, He’s on a mission to explore the world and amplify growth for professionals and businesses.

Thanks to our Sponsors

More great readings on Linux

Power Your Business

Some of the tools and services to help your business grow.
  • The text-to-speech tool that uses AI to generate realistic human-like voices.

    Try Murf AI
  • Web scraping, residential proxy, proxy manager, web unlocker, search engine crawler, and all you need to collect web data.

    Try Brightdata
  • Monday.com is an all-in-one work OS to help you manage projects, tasks, work, sales, CRM, operations, workflows, and more.

    Try Monday
  • Intruder is an online vulnerability scanner that finds cyber security weaknesses in your infrastructure, to avoid costly data breaches.

    Try Intruder