compile error libmysqlclient...

Support and queries relating to all previous versions of ZoneMinder
Locked
nestlerv
Posts: 1
Joined: Fri Jul 25, 2003 10:50 pm

compile error libmysqlclient...

Post 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
boowart
Posts: 6
Joined: Mon Jul 28, 2003 6:25 pm

Re: compile error libmysqlclient...

Post 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?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: compile error libmysqlclient...

Post 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
boowart
Posts: 6
Joined: Mon Jul 28, 2003 6:25 pm

Re: compile error libmysqlclient...

Post 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
Locked