Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ubuntu Server 13.04; Zabbix actual version from source code; MariaDB 5.5

Fistly I've download and unpack Zabbix source code. After that:

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

But an error occurs. From log:

configure:7488: checking for mysql_config 
configure:7521: result: no 
configure:7719: error: MySQL library not found

How can I fix that? For example, phpmyadmin see libmysql - 5.5.31-MariaDB and I have libmysqlclient18 installed too:

libmysqlclient18 is already the newest version.
libmysqlclient18 set to manually installed.

Try to force define path to libs:


Server answer:

checking for mysql_config... /usr/lib/
./configure: line 7529: /usr/lib/: Is a directory
./configure: line 7531: /usr/lib/: Is a directory

I don't really know if it's error or just warning and it already found library.

Trying to install -dev packet:

mammuthus@server:~/zabbix-2.0.6$ sudo apt-get install libmysqlclient-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.31-0ubuntu0.13.04.1) but 5.5.31+maria-1~raring is to be installed
E: Unable to correct problems, you have held broken packages.


mammuthus@server:~/zabbix-2.0.6$ sudo apt-get install libmysqlclient18
Reading package lists... Done
Building dependency tree
Reading state information... Done
libmysqlclient18 is already the newest version.

So i already have -dev tools, yep?

share|improve this question
@dawud, I have 2 official mariaDB repositories in my list (US and RU mirrors), but I have not any libmariadbclient-dev packet in it. I will manualy download it from url you provided and install. – rGA145 Jun 15 '13 at 12:48
Hm, I was wrong, libmariadbdclient-dev is in repository. I try to install it, but - libmariadbclient-dev is already the newest version. – rGA145 Jun 15 '13 at 13:15
up vote 0 down vote accepted

It looks like you are missing the development headers for MariaDB.

Provided you are using the MariaDB repositories for Ubuntu 13, try installing libmariadbdclient-dev from that repository.

You could even manually download the *-dev package from one of the mirrors to check it:

# atool -l libmariadbclient-dev_5.5.31+maria-1~raring_amd64.deb | grep mysql_config
-rwxr-xr-x root/root      6764 2013-05-22 01:48 ./usr/bin/mysql_config
-rw-r--r-- root/root      2127 2013-05-22 02:20 ./usr/share/man/man1/mysql_config.1.gz

For comprehensive instructions on how to build a package from the upstream Zabbix sources check here.

share|improve this answer
$ sudo aptitude install build-essentials devscripts quilt - from link is solution. Thank you. – rGA145 Jun 15 '13 at 13:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.