Jump to content
Калькуляторы

Проблема с zabbix-1.8.4 OS openSUSE 11.3 x86_64

Здравствуйте, имеем машинку с open SUSE 11.3 x86_64, имеем zabbix-1.8.4

при конфигурировании забикса с такими параметрами

 

/configure --prefix /usr/local/zabbix --enable-server --enable-agent --enable-static --with-mysql --with-net-snmp --with-libcurl

Возникает ошибка

 

checking for mysql_config... /usr/bin/mysql_config

checking for main in -lz ... yes

checking for main in -lcrypt ... yes

checking for main in -lnsl ... yes

checking for main in -lm ... yes

checking for main in -lssl ... yes

checking for main in -lcrypto ... yes

checking for main in -lmysqlclient ... no

configure: error: Not found mysqlclient library

 

Ну думаю я не догоняю... Проверяю РПМКИ

 

rpm -qa |grep -i mysql

php5-mysql-5.3.3-0.7.1.x86_64

libmysqld0-5.1.46-2.18.x86_64

libmysqld-devel-5.1.46-2.18.x86_64

mysql-community-server-client-5.1.46-2.18.x86_64

mysql-community-server-5.1.46-2.18.x86_64

libmysqlclient16-5.1.46-2.18.x86_64

libmysqlclient-devel-5.1.46-2.18.x86_64

mysql-community-server-debug-5.1.46-2.18.x86_64

libmysqlclient_r16-5.1.46-2.18.x86_64

libmysqlcppconn-devel-1.0.5-6.2.x86_64

libmysqlcppconn1-1.0.5-6.2.x86_64

 

Все на месте....

Проверяю пути

 

mysql_config

--include [-I/usr/include/mysql]

--libs [-L/usr/lib64/ -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -L/usr/lib64 -lssl -lcrypto]

--libs_r [-L/usr/lib64/ -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -L/usr/lib -L/usr/lib64 -lssl -lcrypto]

--libmysqld-libs [-L/usr/lib64/ -lmysqld -ldl -lz -lpthread -lcrypt -lnsl -lm -lpthread -lwrap -lrt -L/usr/lib -L/usr/lib64 -lssl -lcrypto]

 

ldconfig -p | grep libmysql

libmysqld.so.0 (libc6,x86-64) => /usr/lib64/libmysqld.so.0

libmysqld.so (libc6,x86-64) => /usr/lib64/libmysqld.so

libmysqlcppconn.so.1 (libc6,x86-64) => /usr/lib64/libmysqlcppconn.so.1

libmysqlcppconn.so (libc6,x86-64) => /usr/lib64/libmysqlcppconn.so

libmysqlclient_r.so.16 (libc6,x86-64) => /usr/lib64/libmysqlclient_r.so.16

libmysqlclient_r.so (libc6,x86-64) => /usr/lib64/libmysqlclient_r.so

libmysqlclient.so.16 (libc6,x86-64) => /usr/lib64/libmysqlclient.so.16

libmysqlclient.so (libc6,x86-64) => /usr/lib64/libmysqlclient.so

 

Все на месте...

Какие мысли ?

Share this post


Link to post
Share on other sites

Не находит почему-то header'ы MySQL client-а. Ищите :).

Share this post


Link to post
Share on other sites
a mysql-devel там не водится?
оно побито на несколько пакетов

libmysqld-devel-5.1.46-2.18.x86_64

libmysqlclient-devel-5.1.46-2.18.x86_64

libmysqlcppconn-devel-1.0.5-6.2.x86_64

Share this post


Link to post
Share on other sites
checking for main in -lmysqlclient ... no

configure: error: Not found mysqlclient library

ищет в /usr/local/*

Share this post


Link to post
Share on other sites

непонятно какой файл он ищет...

configure:9760: checking for main in -lmysqlclient

configure:9789: gcc -o conftest -g -O2 -I/usr/include/mysql -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DPIC -fPIC -DUNDEF_HAVE_INITGROUPS -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX -rdynamic -static -L/usr/lib64/ -L/usr/lib -L/usr/lib64 conftest.c -lmysqlclient -lm -lresolv -lz -lcrypt -lnsl -lm -lssl -lcrypto >&5

/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lmysqlclient

collect2: ld returned 1 exit status

configure:9795: $? = 1

Share this post


Link to post
Share on other sites

Победил!!! Ура блин...

/configure --prefix /usr/local/zabbix --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this