[Nagiosplug-help] check_mysql skipped on RHEL 4.1

Jason Bodnar jason at shakabuku.org
Thu Sep 15 15:15:07 CEST 2005


Hi,

I'm trying to compile nagios-plugins-1.4.1 on RHEL 4.1 for x86_64. I have all
the mysql packages installed:

mysql-4.1.10a-2.RHEL4.1
mysql-4.1.10a-2.RHEL4.1
mysql-devel-4.1.10a-2.RHEL4.1
mysql-server-4.1.10a-2.RHEL4.1
mysqlclient10-devel-3.23.58-4.RHEL4.1
mysqlclient10-3.23.58-4.RHEL4.1
mysqlclient10-3.23.58-4.RHEL4.1

(There are duplicates because both the 64-bit and 32-bit versions get installed.)

I've tried the following configure command:

 LD_OPTIONS="$LD_OPTIONS -L/usr/lib64/mysql -L/usr/lib64/mysql3/mysql"
CFLAGS="$CFLAGS -I/usr/include/mysql" ./configure
--build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu
--target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/lib64/nagios/plugins --localstatedir=/var
--sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info
--with-cgiurl=/nagios/cgi-bin --with-nagios-user=nagios
--with-nagios-group=nagios --with-mysql=/usr/lib64/mysql

and end up with this in config.log:

configure:9398: gcc -o conftest  -I/usr/include/mysql
-I/usr/lib64/mysql/include  -L. conftest.c -lmysqlclient
-L/usr/lib64/mysql/lib/mysql -lz  >&5
/usr/bin/ld: cannot find -lmysqlclient

I'm not sure why the last -L is getting hosed but I think that's the problem.
Is this a bug in the configure script?

Also, building on x86_64 for RHEL isn't just a problem for me. The DAG
Repository rpm
(http://dag.wieers.com/packages/nagios-plugins/nagios-plugins-1.4.1-1.2.el4.rf.x86_64.rpm)
is missing the check_mysql plugin and it you try to build the src.rpm
(http://dag.wieers.com/packages/nagios-plugins/nagios-plugins-1.4.1-1.rf.src.rpm)
 the check_mysql plugin gets skipped.

Thanks,

Jason


--
Jason Bodnar
jason at shakabuku.org
http://www.shakabuku.org

"You want free speech? Let's see you acknowledge a man whose words make
your blood boil who is standing center stage advocating at the top of
his lungs that which you would spend a lifetime opposing at the top of
yours." -- President Andrew Shephard, "The American President"





More information about the Help mailing list