libmysqlclient.a and mysql.h - error at configure

Support and queries relating to all previous versions of ZoneMinder
Locked
Remi
Posts: 4
Joined: Thu Jan 11, 2007 11:01 pm

libmysqlclient.a and mysql.h - error at configure

Post by Remi »

Hi all and thank you for your time.. and excuse my frenchies-english faults :)

I tried to install Zm in many ways but i'm still blocked :evil:

I've read the doc, search on google but he was not my friend, and in this forum but those has same problem than me found their solution and not me..

Firstly my problem was configure don't find my libmysqlclient.a file with a 1.21.0 Zm install and a 5.0 mysql install. I was sure of my --with-mysql=path
(/mnt/mysql/mysql, where libmysqlclient.a is in /mnt/mysql/mysql/lib/libmysqlclient.a)!

So, i try with anothers actuals versions of zm, 1.22.2 and 1.22.3. With same steps, the error is now he don't find mysql.h file..
(im still sure of my path, where the file is in /mnt/mysql/mysql/include/mysql.h)


SO!.. I try with anothers actuals versions of Mysql, 5.1 and 5.2. (downloaded directly from the mysql website in non-RPM packages) With same steps, and news paths of newers Mysql, the problem is always same!

ZM 1.21.0 and Mysql5.0, 5.1, or 5.2 : zm requires libmysqlclient.a
ZM 1.22.2 and Mysql5.0, 5.1, or 5.2 : zm requires mysql.h
ZM 1.22.3 and Mysql5.0, 5.1, or 5.2: zm requires mysql.h

I don't know to do more...i'm sure of my --with-mysql paths but he never find them!

Please help!! what can i do?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

can you use a ready built zm sidtro, ie nonlive mandriva 2006?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
ma77hias
Posts: 71
Joined: Wed Jul 07, 2004 3:18 pm

what distro

Post by ma77hias »

Which distribution of linux are you using ?
Fedora, Suse ... ?
Remi
Posts: 4
Joined: Thu Jan 11, 2007 11:01 pm

Post by Remi »

I tried to download Zmdv_2006, the Mandriva ZoneMinder installer CD, but the torrent seems to be a little lazy.. still 0%.

But i'm on debian sarge 3.1 with a functional Apache2 - Mysql 5.0 and Php 5.1 and it should be possible ???

The mysql install is a ready non rpm package standard who i untar in my mount /mnt/mysql. I see the searched files in /mnt/mysql/mysql/lib/libmysqlclient.a and /mnt/mysql/mysql/include/mysql.h and --with-mysql=/mnt/mysql/mysql
Remi
Posts: 4
Joined: Thu Jan 11, 2007 11:01 pm

Post by Remi »

I have just noticed my error message is in reality : "zm requires mysql/mysql.h"

But mysql.h is by default in /mnt/mysql/mysql/include/mysql.h and not in /mnt/mysql/mysql/include/mysql/mysql.h

Why the configure of Zm search in /include/mysql/mysql.h, whereas mysql default install don't have this mysql additionnal repertory?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Your problem is that you have manualy installed MySQL outside the Filesystem Hierarchy Standard.
The standard can be found here.
ZM expects this standard, to get around it you will need to modify the ZM source code.
Remi
Posts: 4
Joined: Thu Jan 11, 2007 11:01 pm

Post by Remi »

Thank you for yours answers.

I believed the --with-mysql= path parameters precisely exist for installs manualy installed outside from the FHS! ?
Aketaton
Posts: 5
Joined: Mon Feb 05, 2007 3:26 pm

Post by Aketaton »

cordel wrote:Your problem is that you have manualy installed MySQL outside the Filesystem Hierarchy Standard.
The standard can be found here.
ZM expects this standard, to get around it you will need to modify the ZM source code.
How can I install it in the right place?

I'm using a 62bits FC6 and followed these instructions:

http://www.zoneminder.com/wiki/index.ph ... ep-by-Step

On a 32bit installation all went smooth, but on the 64bit it is failing :(

THANXX FOR YOUR HELP
Locked