Page 1 of 1

Zoneminder 1.26.3 Configure / Build error libmysqlclient.a

Posted: Sun Sep 15, 2013 3:27 pm
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.

Re: Zoneminder 1.26.3 Configure / Build error libmysqlclient

Posted: Sun Sep 15, 2013 3:54 pm
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

Re: Zoneminder 1.26.3 Configure / Build error libmysqlclient

Posted: Sun Sep 15, 2013 4:56 pm
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.

Re: Zoneminder 1.26.3 Configure / Build error libmysqlclient

Posted: Sun Sep 15, 2013 5:02 pm
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.

Re: Zoneminder 1.26.3 Configure / Build error libmysqlclient

Posted: Sun Sep 15, 2013 5:20 pm
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.

Re: Zoneminder 1.26.3 Configure / Build error libmysqlclient

Posted: Sun Sep 15, 2013 6:01 pm
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=

Re: Zoneminder 1.26.3 Configure / Build error libmysqlclient

Posted: Sun Sep 15, 2013 7:10 pm
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