Page 1 of 1

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

Posted: Fri Apr 09, 2004 4:28 pm
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
==============================================

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

Posted: Fri Apr 09, 2004 5:46 pm
by linh
I got this figured out already. Skip this.

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

Posted: Sat Apr 10, 2004 11:28 pm
by goodman
I have the same problem....How did you fix it? Any help much appreciated

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

Posted: Sun Apr 11, 2004 9:46 am
by fernando
install mysql-devel
i dont know what release are you using..

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

Posted: Sun Apr 11, 2004 3:57 pm
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)

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

Posted: Sun Apr 11, 2004 4:45 pm
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,

Posted: Wed Nov 17, 2004 10:35 pm
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

Posted: Wed Nov 17, 2004 10:55 pm
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

Posted: Thu Nov 18, 2004 5:54 pm
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.