libmysqlclient.a Installation problem

Support and queries relating to all previous versions of ZoneMinder
Locked
joshlewis
Posts: 19
Joined: Mon Dec 08, 2003 8:26 am

libmysqlclient.a Installation problem

Post by joshlewis »

When I run the configure script ( ./configure --with-mysql=/usr/ --with-webdir /var/www/html/Zoneminder --with-cgidir=/var/www/cgi-bin/) as suggested in the documentation, I get the following error: configure: error: zm requires libmysqlclient.a
I've searched for this library both on my system and on the web, but cannot seem to find it.
Can anyone suggest where I may be able to find it?
I'm using MySQL 3.23.54, PHP 4.2.2 with Apache 2 (I think), which all work fine.
Any assistance would be appreciated
-JOsh
snakebyte
Posts: 45
Joined: Sun Dec 07, 2003 1:51 am

Re: libmysqlclient.a Installation problem

Post by snakebyte »

Assuming you're running redhat, or can use redhat rpms, you need the mysql-devel rpm. Otherwise if you compiled your own mysql, you should have that file somewhere on your system.
joshlewis
Posts: 19
Joined: Mon Dec 08, 2003 8:26 am

Re: libmysqlclient.a Installation problem

Post by joshlewis »

Thanks Ian,
after a lot of scratching around, especially on www.mysql.com, I found what was necessary, and the configure script now works.
Thanks again
-JOsh
matraxus
Posts: 1
Joined: Tue Dec 09, 2003 1:31 pm

Re: libmysqlclient.a Installation problem

Post by matraxus »

Would you be so kind to write me what did you do ? I have the same problem and no idea what to do next :( mysql-dev rpm I 've got installed and it didn't help :(
Thanks

Matraxus
joshlewis
Posts: 19
Joined: Mon Dec 08, 2003 8:26 am

Re: libmysqlclient.a Installation problem

Post by joshlewis »

If I remember correctly, the RPM needed is either the MySQL-shared-compat-...-.RPM or the MySQL-devel-...-.RPM.

Hope it helps
-JOsh
yaginuk
Posts: 9
Joined: Sat Jan 03, 2004 4:42 pm

Re: libmysqlclient.a Installation problem

Post by yaginuk »

try this web site

http://rpmfind.net/linux/RPM/

and search for mysql-devel and mysql-client, im on redhat 9 and had to update all sorts from g++ to mysql for zoneminder and gaim
gessel
Posts: 26
Joined: Sat Jan 24, 2004 12:24 am

Re: libmysqlclient.a Installation problem

Post by gessel »

I could not get the install to work no matter the various RPMs and src.rpms built and installed until I ran the following

ln -s /usr/lib/mysql/libmysqlclient.a /usr/lib/libmysqlclient.a

No more complaints
heyarnold
Posts: 8
Joined: Thu Feb 05, 2004 3:19 am

Re: libmysqlclient.a Installation problem

Post by heyarnold »

I had this error, and to solve it I followed David Gessel's suggestion of linking the file.

ln -s /usr/lib/mysql/libmysqlclient.a /usr/lib/libmysqlclient.a

This worked! and I did not half to download and install any additional RPM's from MySQL site.

I am using Redhat 9 with everything loaded.
Locked