Page 1 of 1

compile error libmysqlclient...

Posted: Fri Jul 25, 2003 10:54 pm
by nestlerv
I get the error,

checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a

I have mysql installed
using redhat 9

the file exists
this is the line i am using to compile

./configure --with-mysql=/usr/lib/mysql --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin

any ideas

Re: compile error libmysqlclient...

Posted: Mon Jul 28, 2003 6:28 pm
by boowart
i've got the same error too, using redhat 9.

i manually installed mysql-devel-3.23.54a-3.70_1.i386.rpm
using the command: rpm -i mysql-devel-3.23.54a-3.70_1.i386.rpm

and it has been installed to /usr/lib/mysql

what could be wrong?

Re: compile error libmysqlclient...

Posted: Mon Jul 28, 2003 8:00 pm
by zoneminder
Normally using

--with-mysql=/usr

will work as it looks in <dir>/lib for the library <dir>/include for the headers etc.

Try that and see how you get on.

Cheers,

Phil

Re: compile error libmysqlclient...

Posted: Mon Jul 28, 2003 8:54 pm
by boowart
Hi Phil,

thank you very much. Your suggestion worked for me.
Today i mastered the build-process and even the installation of zoneminder .15
on my box. Tomorrow i will try to set up some monitors to get it working.
The zm.php therefore works properly.

Cheers,
Danny