ZABBIX Forums  
  #1  
Old 12-09-2006, 10:34
muddyboots muddyboots is offline
Junior Member
 
Join Date: Sep 2006
Posts: 4
Default Installation error

Hi

I have just downloaded version 1.1.1 and am trying to build on a machine running Redhat Enterprise Linux ES Version 4 (Nahant).

I have used the following configure command:
Code:
./configure --prefix=/usr/local/zabbix-1.1.1 --enable-server --with-mysql --with-net-snmp --enable-agent
The configure completes OK.

However, during the make install, I get the following error:
Code:
make[3]: Entering directory `/usr/local/zabbix-1.1.1/src/zabbix_server'
gcc  -g -O2  -L/usr/lib/mysql -o zabbix_server -L/usr/lib/mysql    -L/usr/lib  evalfunc.o expression.o actions.o zlog.o functions.o server.o ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/linux/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxpid/libzbxpid.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a pinger/libzbxpinger.a poller/libzbxpoller.a housekeeper/libzbxhousekeeper.a alerter/libzbxalerter.a timer/libzbxtimer.a trapper/libzbxtrapper.a ../libs/zbxemail/libzbxemail.a  ../libs/zbxsms/libzbxsms.a ../libs/zbxdbhigh/libzbxdbhigh.a ../libs/zbxcommon/libzbxcommon.a -lmysqlclient -lm -lz    -lnetsnmp  -lcrypto -lresolv -lnsl
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.3/../../../libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[3]: *** [zabbix_server] Error 1
make[3]: Leaving directory `/usr/local/zabbix-1.1.1/src/zabbix_server'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/local/zabbix-1.1.1/src/zabbix_server'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/zabbix-1.1.1/src'
make: *** [install-recursive] Error 1
For info, I have the following RPMS installed:
Code:
[root@dylan mysql]# rpm -qa | grep -i mysql
mysqlclient10-3.23.58-4.RHEL4.1
php-mysql-4.3.9-3.1
mysql-devel-4.1.7-4.RHEL4.1
MySQL-python-1.0.0-1.RHEL4.1
mysqlclient10-devel-3.23.58-4.RHEL4.1
qt-MySQL-3.3.3-9.3
mysqlclient10-3.23.58-4.RHEL4.1
libdbi-dbd-mysql-0.6.5-10.RHEL4.1
freeradius-mysql-1.0.1-2.RHEL4
mysql-server-4.1.7-4.RHEL4.1
mysql-4.1.7-4.RHEL4.1
mysql-bench-4.1.7-4.RHEL4.1
perl-DBD-MySQL-2.9004-3.1
mysql-4.1.7-4.RHEL4.1
mod_auth_mysql-2.6.1-2.1
And the following files exist in /usr/lib/mysql:
Code:
[root@dylan mysql]# pwd
/usr/lib/mysql
[root@dylan mysql]# ls -al
total 2608
drwxr-xr-x   2 root root    4096 Sep 12 09:45 .
drwxr-xr-x  82 root root   61440 Sep 12 09:45 ..
lrwxrwxrwx   1 root root      26 Dec 20  2005 libmysqlclient_r.so.10 -> libmysqlclient_r.so.10.0.0
-rwxr-xr-x   1 root root  211004 Nov 24  2004 libmysqlclient_r.so.10.0.0
lrwxrwxrwx   1 root root      26 Dec 20  2005 libmysqlclient_r.so.14 -> libmysqlclient_r.so.14.0.0
-rwxr-xr-x   1 root root 1048388 Nov 24  2004 libmysqlclient_r.so.14.0.0
lrwxrwxrwx   1 root root      24 Dec 20  2005 libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
-rwxr-xr-x   1 root root  207520 Nov 24  2004 libmysqlclient.so.10.0.0
lrwxrwxrwx   1 root root      24 Dec 20  2005 libmysqlclient.so.14 -> libmysqlclient.so.14.0.0
-rwxr-xr-x   1 root root 1044224 Nov 24  2004 libmysqlclient.so.14.0.0
-rwxr-xr-x   1 root root   10902 Nov 24  2004 mysqlbug
-rwxr-xr-x   1 root root    4259 Nov 24  2004 mysql_config
Any suggestions ?

Many thanks !
Lee
Reply With Quote
  #2  
Old 12-09-2006, 10:46
muddyboots muddyboots is offline
Junior Member
 
Join Date: Sep 2006
Posts: 4
Default

The same problem occurs in version 1.1 as well.
Reply With Quote
  #3  
Old 12-09-2006, 10:57
muddyboots muddyboots is offline
Junior Member
 
Join Date: Sep 2006
Posts: 4
Default

Sorry - the above make output was after I had symlink'ed a libmysqlclient.so file, please ignore it.

This is the normal output from make:
Code:
gcc  -g -O2  -L/usr/lib/mysql -o zabbix_server -L/usr/lib/mysql    -L/usr/lib  evalfunc.o expression.o actions.o zlog.o functions.o server.o ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/linux/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxpid/libzbxpid.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a pinger/libzbxpinger.a poller/libzbxpoller.a housekeeper/libzbxhousekeeper.a alerter/libzbxalerter.a timer/libzbxtimer.a trapper/libzbxtrapper.a ../libs/zbxemail/libzbxemail.a  ../libs/zbxsms/libzbxsms.a ../libs/zbxdbhigh/libzbxdbhigh.a ../libs/zbxcommon/libzbxcommon.a -lmysqlclient -lm -lz    -lnetsnmp  -lcrypto -lresolv -lnsl
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[3]: *** [zabbix_server] Error 1
make[3]: Leaving directory `/usr/local/zabbix-1.1.1/src/zabbix_server'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/local/zabbix-1.1.1/src/zabbix_server'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/zabbix-1.1.1/src'
make: *** [install-recursive] Error 1
Reply With Quote
  #4  
Old 12-09-2006, 12:29
muddyboots muddyboots is offline
Junior Member
 
Join Date: Sep 2006
Posts: 4
Default

Fixed it.

The libmysqlclient.a library is in /usr/lib64/mysql, not /usr/lib/mysql.

Doing a :

export LDFLAGS=-L/usr/lib64/mysql

before running configure and make fixes the problem.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:35.