libmysqlclient.a reported as missing

Support and queries relating to all previous versions of ZoneMinder
Locked
tstier0809
Posts: 19
Joined: Mon Jul 18, 2005 1:37 pm

libmysqlclient.a reported as missing

Post 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!
Thomas
TheFluffyOne
Posts: 7
Joined: Mon Jul 18, 2005 12:47 pm
Location: Swindon, UK

Post 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.
tstier0809
Posts: 19
Joined: Mon Jul 18, 2005 1:37 pm

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

Post by zoneminder »

What parameters did you pass to configure?

Phil
tstier0809
Posts: 19
Joined: Mon Jul 18, 2005 1:37 pm

Post 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
Thomas
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
rmo
Posts: 22
Joined: Fri Jan 21, 2005 6:57 pm
Location: Germany

./configure

Post 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
tstier0809
Posts: 19
Joined: Mon Jul 18, 2005 1:37 pm

Post 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
Thomas
rmo
Posts: 22
Joined: Fri Jan 21, 2005 6:57 pm
Location: Germany

./configure

Post 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
maxashton
Posts: 2
Joined: Mon Jul 25, 2005 4:03 pm

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

Post by zoneminder »

Thanks Max. It's nice to know when things work as well as when they don't!

Phil
maxashton
Posts: 2
Joined: Mon Jul 25, 2005 4:03 pm

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

Post 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
tstier0809
Posts: 19
Joined: Mon Jul 18, 2005 1:37 pm

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