That didn't work what next?

Jorg.Schulz at systeam.se Jorg.Schulz at systeam.se
Fri Feb 9 08:20:30 CET 2007



 

 


-----Ursprungligt meddelande-----
Från: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] För stava at telcotec.se
Skickat: den 8 februari 2007 20:07
Till: samfraser at yahoo.co.uk
Kopia: nagios-users at lists.sourceforge.net
Ämne: Re: [Nagios-users] That didn't work what next?

Sam Fraser wrote:
> Thanks for being so helpful.

No worries, we've all been there.

> Ok, I've uninstalled mysql server and reinstalled mysql-server with
mysql-devel.  I tried again to ./configure and then make, it looks a lot
better but still get the errors.  Blow is the last section of output from
the ./configure, showing you that it has now found where the mysql_config
and following that my attempt at make.

OK, that's one good step forward.

> I'm running FC 6.

OK, fine.

> config.status: creating po/Makefile
>             --with-apt-get-command: 
>               --with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
>                --with-ping-command: /bin/ping -n -U -w %d -c %d  %s
>                       --with-lwres: no
>                        --with-ipv6: yes
>                       --with-mysql: /usr/bin/mysql_config
>                     --with-openssl: yes
>                      --with-gnutls: no
>       --enable-emulate-getaddrinfo: no
>                        --with-perl:  /usr/bin/perl
>                      --with-cgiurl: /nagios/cgi-bin
>                --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
> [root at windowslinux nagios-plugins-1.4.5]# make
> make  all-recursive
> make[1]: Entering directory `/root/nagios-plugins-1.4.5'
> Making all in lib
> make[2]: Entering directory `/root/nagios-plugins-1.4.5/lib'
> make  all-recursive
> make[3]: Entering directory `/root/nagios-plugins-1.4.5/lib'
> Making all in tests
> make[4]: Entering directory `/root/nagios-plugins-1.4.5/lib/tests'
> make[4]: Nothing to be done for `all'.
> make[4]: Leaving directory `/root/nagios-plugins-1.4.5/lib/tests'
> make[4]: Entering directory `/root/nagios-plugins-1.4.5/lib'
> make[4]: Nothing to be done for `all-am'.
> make[4]: Leaving directory  `/root/nagios-plugins-1.4.5/lib'
> make[3]: Leaving directory `/root/nagios-plugins-1.4.5/lib'
> make[2]: Leaving directory `/root/nagios-plugins-1.4.5/lib'
> Making all in plugins
> make[2]: Entering directory `/root/nagios-plugins-1.4.5/plugins'
> if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap  -I/u
> sr/include -I/usr/include/mysql  -I/usr/include/mysql -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-bu
> ffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -g -O2 -MT che
> ck_mysql-check_mysql.o -MD -MP -MF ".deps/check_mysql-check_mysql.Tpo"
-c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || e
> cho './'`check_mysql.c; \
>         then mv -f ".deps/check_mysql-check_mysql.Tpo"
".deps/check_mysql-check_mysql.Po"; else rm -f
".deps/check_mysql-check_mysql
> .Tpo"; exit 1; fi
> /bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_mysql
check_mysql-check_mysql.o netutils.o utils.o ../lib/libnagi
> osplug.a ../lib/libcoreutils.a  -lnsl -lresolv -L/usr/lib64/mysql
-lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto -l
> ssl -lcrypto 
> gcc -g -O2 -o check_mysql check_mysql-check_mysql.o netutils.o utils.o
-L/root/nagios-plugins-1.4.5/plugins ../lib/libnagiosplug.a 
> ../lib/libcoreutils.a -lresolv -L/usr/lib64/mysql -lmysqlclient -lz
-lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status
> make[2]: *** [check_mysql] Error 1
> make[2]: Leaving directory `/root/nagios-plugins-1.4.5/plugins'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/nagios-plugins-1.4.5'
> make: *** [all] Error 2

OK, not too bad then.

It would appear that the build is looking for the MySQL
libraries to link with. On my SuSE Linux 10.2 I have a
file called /usr/lib/libmysqlclient.so.15 that most
certainly would be the one. Further investigation shows
that the file belongs to mysql-shared-5.0.26-12.i586.rpm
(on my distro at least). The rpm distro packagers do it
slightly differently on different distros, but would you
mind having a look and see if you got the mysql-shared rpm
package somewhere in your distro, and if so make sure it's
installed. Failing that, see if you can find any other mysql
related rpm packages that are not yet installed.
/L

Hi , 

Thats´s your problem "/usr/bin/ld: cannot find -lmysqlclient " right? 

Try a 'ldconfig -v | grep mysql' and show the output 
Check your depends for mysql
And make a rpm -qa | grep -i mysql to see what is installed 
You are missing some packages shared-compat 

yum search mysql | grep 'core\|extras' 
yum -y install mysql mysqlclient10 mysqlclient10-devel mysqlclient14
mysqlclient14-devel

Are you running FC6 on a 64Bit machine ?
/joe
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.30/674 - Release Date:
2007-02-07 15:33
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.30/674 - Release Date:
2007-02-07 15:33
 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list