Page 1 of 1

libmysqlclient.a reported as missing

Posted: Tue Jul 19, 2005 5:02 pm
by tstier0809
Hello All:

During ./configure of Zoneminder 1.21 under SuSe Linux 9.3 I get the message:

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

Configure terminates with this message. MySQL Server is running, and libmysqlclient.a exists - can't really say anything else because I have no clue about MySQL.

Any suggestions and hints what I am doing wrong here would be most welcome!

Thanks!

Posted: Tue Jul 19, 2005 7:51 pm
by TheFluffyOne
I'm not particularly familiar with SuSe, however most of the RPM-based distros have separate mysql and mysql-devel packages. The -devel packages install all of the headers needed to compile an application such as ZM.

Make sure you've got the mysql-devel package installed.

Posted: Fri Jul 22, 2005 7:01 am
by tstier0809
Thanks FluffyOne - I have checked to make sure I have all packages installed which remotely appear to have something to do with mysql - including the devel package - still the same error...

Posted: Fri Jul 22, 2005 10:11 am
by zoneminder
What parameters did you pass to configure?

Phil

Posted: Fri Jul 22, 2005 12:49 pm
by tstier0809
./configure --with-mysql=/var/mysql --with-webdir=/var/www/html/zoneminder --with-cgidir=/var/www/cgi-bin

I have tried various dirs for --with-mysql=, however, I always get the same error message.

Thanks
Thomas

Posted: Fri Jul 22, 2005 4:49 pm
by cordel
Most distro's have Mysql executables in /usr or /usr/local and the data is in /var. You should be pointing to the execuables not the data.
./configure --with-mysql=/usr --with-webdir=/var/www/html/zoneminder --with-cgidir=/var/www/cgi-bin -with-webuser= --with-webgroup=
You should also fill in the webuser and group.
Regards,
Cordel

./configure

Posted: Sun Jul 24, 2005 9:01 am
by rmo
Under SuSE try :

Code: Select all

 ./configure --with-mysql=/usr --with-webuser=wwwrun --with-webgroup=www --with-webdir=/srv/www/htdocs/zoneminder --with-cgidir=/srv/www/cgi-bin/zoneminder --sysconfdir=/etc/zoneminder --with-ffmpeg=/usr --with-lame=/usr 
If all needed devel rpm's are installed, it should work.

Regards,

Rainer

Posted: Sun Jul 24, 2005 9:37 am
by tstier0809
Thanks Cordel, Thanks Rainer - I have tried both ./configure codes you have provided, but the error message is still the same :(

Regards
Thomas

./configure

Posted: Sun Jul 24, 2005 2:49 pm
by rmo
I'm running SuSE 9.3 with these mysql RPM's installed

Code: Select all

rpm -qa | grep ^mysql
mysql-shared-4.1.10a-3
mysql-4.1.10a-3.2
mysql-query-browser-1.1.5-4
mysql-devel-4.1.10a-3
mysql-connector-java-3.1.6-3
mysql-client-4.1.10a-3
mysql-administrator-1.0.19-3
mysql-Max-4.1.10a-3.2
zm is compiling without any probs

Regards,
Rainer

Posted: Mon Jul 25, 2005 11:01 pm
by maxashton
Hey folks!

I found it helped me with library problems to use Apt for RPM. http://linux01.gwdg.de/apt4rpm/

I had the same problem as you Thomas, but after running

Code: Select all

apt-get install mysql-devel ffmpeg
and executing the ./configure again, everything compiled smoothly. Though hardcore RPM fans might think using package managers like apt-get is lazy, it generally turns out to be far more efficient.

For my install, i used SuSE 9.3 minimal install, customised to include the "Simple Webserver" package selection, the development tools, and then searched for links, libjpeg, and wget. I let SuSE autoupdate for me.

After that i used links to download apt for rpm from the above site, and installed ffmpeg, mysql-devel.

After downloading zm, it compiled and installed smoothly following the instructions in the readme.

Max[/code]

Posted: Tue Jul 26, 2005 11:43 am
by zoneminder
Thanks Max. It's nice to know when things work as well as when they don't!

Phil

Posted: Tue Jul 26, 2005 5:39 pm
by maxashton
HTH, Phil.

I was wondering if you have any way of simulating a channel. I wanted to put together a test environment at work, but dynamode et al won't lend me a camera for trial purposes.

I figured if i could simulate a camera i could demonstrate easier.

Max

Posted: Thu Jul 28, 2005 9:23 am
by zoneminder
The only thing I can think of would be to set up a remote camera to point to an image, either on your internal network or an external one. Anything should work really and you could piggyback on another webcam (or even ZM) feed. It would be a bit rude to do so for an extended period without asking first of course though.

Phil

Posted: Fri Jul 29, 2005 12:15 pm
by tstier0809
Thanks Max!

I used apt, found the deficiencies in the mysql-devel package, sorted that out and --- the ./configure and install worked fine.

All: Thanks for your help. I appreciate you taking the time helping me!

Regards
Thomas