[collectd] including mysql 5.1 from source

Dusty Doris collectd at dusty.name
Fri Oct 31 20:51:37 CET 2008


Hello.

I am having a hard time getting collectd to recognize mysql on my
system and I was hoping that someone could help.

So, I have mysql installed in /opt/mysql-5.1.29-rc-linux-i686-glibc23
and I pass that to collectd configure script like so:

./configure --prefix=/opt/collectd-4.5.1
--with-libmysql=/opt/mysql-5.1.29-rc-linux-i686-glibc23

The output I get that refers to this issue is:

--------
checking mysql/mysql.h usability... no
checking mysql/mysql.h presence... no
checking for mysql/mysql.h... no

libmysql  . . . . . . no (mysql/mysql.h not found)
--------

I tried to add some debugging to the configure script, and I see that
it is finding mysql_config and the command it runs does return a 0.
This is from this part.

--------
        with_mysql_cflags=`$with_mysql_config --cflags 2>/dev/null`
        mysql_config_status=$?
--------

So, at this point in the configure script, its found mysql_config and
ran it and it returned with an exit code of 0.  But, then something
goes wrong later on in the configure script.  The error I receive is
about not finding mysql.h.  However, you can see that mysql.h does
exist under the include directory.

--------
# find /opt/mysql-5.1.29-rc-linux-i686-glibc23/include -name "mysql.h" -ls
405892   36 -rw-r--r--   1 root     root        33654 Oct 14 02:13
/opt/mysql-5.1.29-rc-linux-i686-glibc23/include/mysql.h
--------

Does anybody have any ideas?  If you want to try to recreate it, I
downloaded mysql from:

http://dev.mysql.com/downloads/mysql/5.1.html#linux

The version I downloaded is Linux (x86) 5.1.29

http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.29-rc-linux-i686-icc-glibc23.tar.gz/from/pick


The collectd package is 4.5.1.

http://collectd.org/files/collectd-4.5.1.tar.gz

Thanks
Dusty Doris



More information about the collectd mailing list