PDA

View Full Version : configure: error: Not found mysqlclient library


lwk
30-04-2008, 13:58
Hi!

Im trying to install Zabbix 1.4.5 on an HP-UX 11.11 System-
During :/configure the followning mistakes happen:

checking for mysql_config... /usr/local/mysql-5.1.23-rc-hpux11.11-hppa2.0w-64bit/bin/mysql_config
checking for main in -lmysqlclient ... no
configure: error: Not found mysqlclient library


My configure was:
configure --with-mysql=/usr/local/mysql-5.1.23-rc-hpux11.11-hppa2.0w-64bit/bin/mysql_config \
--with-net-snmp --enable-server --enable-agent

MySQL Version is 5.1.23 64 Bit

I tried to path the needed librarys via LDFLAGS but because of this the C Compiler gets an Error...

Does anybody know, how to include the needes librarys in configure?

trikke
30-04-2008, 15:22
Hi,

I think u just have to include the PATH "--with-mysql=/usr/local/mysql-5.1.23-rc-hpux11.11-hppa2.0w-64bit/bin/".

See config.log for more information,

Greets
Patrick

lwk
07-05-2008, 11:42
Hi!

Again, the same error occured...

But the directory / path
--with-mysql=/usr/local/mysql-5.1.23-rc-hpux11.11-hppa2.0w-64bit/bin/

contains only binaries- no libs...

lwk
20-05-2008, 10:17
Does anybody know a solution?

maxpower
20-05-2008, 11:27
look in config.log for the detailed error message as trikke already told you.

xs-
21-05-2008, 11:15
try --with-mysql=/usr/local/mysql-5.1.23-rc-hpux11.11-hppa2.0w-64bit
Normally you would enter the base path of the installation

if that doesnt work try

CPPFLAGS=-I/usr/local/mysql-5.1.23-rc-hpux11.11-hppa2.0w-64bit/include LDFLAGS=-L/usr/local/mysql-5.1.23-rc-hpux11.11-hppa2.0w-64bit/lib ./configure bla bla
and
CPPFLAGS=-I/usr/local/mysql-5.1.23-rc-hpux11.11-hppa2.0w-64bit/include LDFLAGS=-L/usr/local/mysql-5.1.23-rc-hpux11.11-hppa2.0w-64bit/lib make all

Bill Wang
21-12-2011, 17:57
1. find location of mysql lib dir and enter it
2. there maybe have some lib file such like "libmysqlclient.so.15.0.0" and "libmysqlclient_r.so.15.0.0"
3. make two soft links by run these two commands "ln -s libmysqlclient.so.15.0.0 libmysqlclient.so" and "ln -s libmysqlclient_r.so.15.0.0 libmysqlclient_r.so"
4. then redo configure script