Problem when running ./configure. error: zm requires libmysq

Support and queries relating to all previous versions of ZoneMinder
Locked
linh
Posts: 15
Joined: Thu Apr 08, 2004 8:42 pm

Problem when running ./configure. error: zm requires libmysq

Post by linh »

I am using zm-1.19.1

./configure --with-mysql=/usr/share/mysql/
--with-webdir=/var/www/htm/zm
--with-cgidir=/var/www/cgi-bin
--with-ffmpeg=/usr/local/ffmpeg/libavcodec

The last 3 lines are showned below

checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a
==============================================

I searched for the file libmysqlclient.a and it is in /usr/lib/mysql/ directory.
This is what I used in ./configure as showned above

[root@localhost /]# find / -name libmysqlclient.a
/usr/lib/mysql/libmysqlclient.a
==============================================
linh
Posts: 15
Joined: Thu Apr 08, 2004 8:42 pm

Re: Problem when running ./configure. error: zm requires lib

Post by linh »

I got this figured out already. Skip this.
goodman
Posts: 5
Joined: Sat Apr 10, 2004 11:15 pm

Re: Problem when running ./configure. error: zm requires lib

Post by goodman »

I have the same problem....How did you fix it? Any help much appreciated
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

Re: Problem when running ./configure. error: zm requires lib

Post by fernando »

install mysql-devel
i dont know what release are you using..
goodman
Posts: 5
Joined: Sat Apr 10, 2004 11:15 pm

Re: Problem when running ./configure. error: zm requires lib

Post by goodman »

thanks...got past that bump....now i have a new problem!

I can load and log in to the Console window, but there is a message : " Warning Division by zero in /var/www/html/zm/zm_html_view_console.php on line 62 "

I am thinking that this is a php problem, will try to change php.ini file, per README (if i can figure out how to do this)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Problem when running ./configure. error: zm requires lib

Post by zoneminder »

This is nearly always caused by the database not being provisioned. Make sure you have run zmconfig.pl at least once after you have created your database.

Phil,
bikerfreak
Posts: 10
Joined: Mon Nov 15, 2004 7:24 pm

Post by bikerfreak »

Was there an answer as to how I go about fixing the error:

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

I installed mysql-devel on Fedora Core 2 and I'm still getting this error. It looks like configure is checking for mysql_init and not finding it. Am I suppose to use a certain version of mysql? Can someone help me out?

Thanks
bikerfreak
Posts: 10
Joined: Mon Nov 15, 2004 7:24 pm

Post by bikerfreak »

A quick peek inside libmysqlclient.a shows that mysql_init no longer exists and may have been replaced by my_init. Does that mean I have to find an older version of mysql to compile zm? Or am I doing something wrong?

Thanks
bikerfreak
Posts: 10
Joined: Mon Nov 15, 2004 7:24 pm

Post by bikerfreak »

OK, FYI

using --wth-mysql=/usr instead of /usr/lib/mysql fixed it. I don't know how since the libs are all under /usr/lib/mysql, but it did fix it.
Locked