Hi All,
I can't seem to get Zabbix 1.4 compiled on my Solaris machine.
I have enabled mysql, client and server support. The following command line is used:
./configure --prefix=/data/zabbix-1.4 --with-mysql=/usr/sfw/bin/mysql_config --enable-server --enable-client
mysql_config output:
Usage: /usr/sfw/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/sfw/include/mysql -xstrconst -mt]
--include [-I/usr/sfw/include/mysql]
--libs [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm]
--libs_r [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient_r -lpthread -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lpthread]
--socket [/tmp/mysql.sock]
--port [3306]
--version [4.0.24]
--libmysqld-libs [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqld -lpthread -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lpthread -lrt]
I keep getting the following error:
checking for mysql_config... /usr/sfw/bin/mysql_config
checking for main in -lmysqlclient ... no
configure: error: Not found mysqlclient library
I have tried using LDFLAGS:
export LDFLAGS="-L/usr/sfw/lib/mysql"
Or even the longer version (as output from mysql_config):
export LDFLAGS="-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm"
No use. The configure program still does not find my libmysqlclient, even though it's installed. MySQL is also running fine on this machine.
Anyone some ideas?
Thanks
Cedric
I can't seem to get Zabbix 1.4 compiled on my Solaris machine.
I have enabled mysql, client and server support. The following command line is used:
./configure --prefix=/data/zabbix-1.4 --with-mysql=/usr/sfw/bin/mysql_config --enable-server --enable-client
mysql_config output:
Usage: /usr/sfw/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/sfw/include/mysql -xstrconst -mt]
--include [-I/usr/sfw/include/mysql]
--libs [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm]
--libs_r [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient_r -lpthread -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lpthread]
--socket [/tmp/mysql.sock]
--port [3306]
--version [4.0.24]
--libmysqld-libs [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqld -lpthread -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lpthread -lrt]
I keep getting the following error:
checking for mysql_config... /usr/sfw/bin/mysql_config
checking for main in -lmysqlclient ... no
configure: error: Not found mysqlclient library
I have tried using LDFLAGS:
export LDFLAGS="-L/usr/sfw/lib/mysql"
Or even the longer version (as output from mysql_config):
export LDFLAGS="-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm"
No use. The configure program still does not find my libmysqlclient, even though it's installed. MySQL is also running fine on this machine.
Anyone some ideas?
Thanks
Cedric
Comment