Zoneminder 1.26.3 Configure / Build error libmysqlclient.a

Forum for questions and support relating to the 1.26.x releases only.
Locked
User avatar
2Psycho
Posts: 37
Joined: Tue Jan 24, 2012 9:45 pm

Zoneminder 1.26.3 Configure / Build error libmysqlclient.a

Post by 2Psycho »

Hello,

I am trying to upgrade my existing 1.25 zondminder to 1.26.3.
But during the "./configure" it is responding with an error.

Code: Select all

checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a
I have all modules installed

Code: Select all

locate libmysqlclient
/usr/clearos/sandbox/usr/lib/mysql/libmysqlclient.so.16
/usr/clearos/sandbox/usr/lib/mysql/libmysqlclient.so.16.0.0
/usr/clearos/sandbox/usr/lib/mysql/libmysqlclient_r.so.16
/usr/clearos/sandbox/usr/lib/mysql/libmysqlclient_r.so.16.0.0
/usr/lib64/mysql/libmysqlclient.so
/usr/lib64/mysql/libmysqlclient.so.16
/usr/lib64/mysql/libmysqlclient.so.16.0.0
/usr/lib64/mysql/libmysqlclient_r.so
/usr/lib64/mysql/libmysqlclient_r.so.16
/usr/lib64/mysql/libmysqlclient_r.so.16.0.0
For some how it requistes for *.a instead of .so?
Is this know, what is the fix or workaround.
Enjoyment Matters
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder 1.26.3 Configure / Build error libmysqlclient

Post by knight-of-ni »

Well, you didn't show exactly how you called ./configure, but a guess would be that you need to add this to your configure statement: --with-mysql=/usr
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
2Psycho
Posts: 37
Joined: Tue Jan 24, 2012 9:45 pm

Re: Zoneminder 1.26.3 Configure / Build error libmysqlclient

Post by 2Psycho »

The execute the following command:

Code: Select all

./configure --with-webdir=/var/www/virtual/domain.net --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=xxxx ZM_DB_PASS=xxxx --with-ffmpeg=/usr/local/share/ffmpeg CPPFLAGS="-D__STDC_CONSTANT_MACROS" --with-mysql=/usr
It appears with the same error message.
I tried to create a symbolic link from /usr/lib64/mysql/libmysqlclient.so to /usr/lib64/mysql/libmysqlclient.a also without success.
Enjoyment Matters
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder 1.26.3 Configure / Build error libmysqlclient

Post by knight-of-ni »

Look in your config.log file. If should tell you exactly which folder & library it was looking for when it failed.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
2Psycho
Posts: 37
Joined: Tue Jan 24, 2012 9:45 pm

Re: Zoneminder 1.26.3 Configure / Build error libmysqlclient

Post by 2Psycho »

The problem is that the script does not look in the /usr/lib64 folder.
I created a symbolic link in the /usr/lib to the library now it works.
Maybe something for the ToDo list :D add 64bit support.
Enjoyment Matters
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder 1.26.3 Configure / Build error libmysqlclient

Post by knight-of-ni »

64bit installs work just fine.

The problem has got something to do with your distro (you have not mentioned what it is) or the way you are running configure.

UPDATE: This is what my configure statement looks like on a 64bit CentOS platform. Works flawlessly.

Code: Select all

./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-libarch=lib64 --disable-crashtrace --with-mysql=/usr --with-ffmpeg=/usr --with-webdir=/usr/share/zoneminder/www --with-cgidir=/usr/libexec/zoneminder/cgi-bin --with-webuser=abauer --with-webgroup=abauer --enable-mmap=yes --disable-debug --with-webhost=zm.local ZM_SSL_LIB=gnutls ZM_RUNDIR=/var/run/zoneminder ZM_TMPDIR=/var/lib/zoneminder/temp CXXFLAGS=-D__STDC_CONSTANT_MACROS -msse2 --with-extralibs=
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
2Psycho
Posts: 37
Joined: Tue Jan 24, 2012 9:45 pm

Re: Zoneminder 1.26.3 Configure / Build error libmysqlclient

Post by 2Psycho »

My system has the following specs:
Version ClearOS Community release 6.4.0 (Final)
Kernel Version 2.6.32-358.14.1.v6.x86_64
System Time Sun Sep 15 21:08:47 CEST 2013
CPU Model Intel(R) Atom(TM) CPU D510 @ 1.66GHz
Memory Size 3.72 GB
Enjoyment Matters
Locked