configure: error: wrong mysql library version or lib not found.

ajax20

Verified User
Joined
Jul 16, 2014
Messages
142
Hello

After following the tutorial here for getting rid of the error

Code:
/usr/local/lib/libz.so.1: no version information available (required by python)

I now get the following error messages after issuing
Code:
./build php n
:

Code:
configure: error: wrong mysql library version or lib not found. Check config.log for more information.

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file

Any ideas how I can eliminate this error.

Thanks in advance.
 
I would like to note that with CB 2.0 it shouldn't check for MySQL libs at all, as it uses mysqlnd. If it's CustomBuild 1.x, make sure all of MySQL packets are installed on the system. Knowing your OS would help me to provide you some commands to check that. If it's CentOS, then "rpm -qa | grep MySQL" command would let us know more details about that. As for libz.so: I wouldn't recommend you having it built using CB at all.
 
Hi Martynas

Thanks a lot for replying

My OS is Centos 6.5 64bit. Issuing

Code:
rpm -qa | grep MySQL

I get

Code:
MySQL-shared-5.5.31-1.linux2.6.x86_64
MySQL-server-5.5.31-1.linux2.6.x86_64
MySQL-devel-5.5.31-1.linux2.6.x86_64
MySQL-client-5.5.31-1.linux2.6.x86_64

I have set

Code:
/build set new_zlib [B]no[/B]

and repeated the same steps (I don't know if it was the right thing to do), however, I get the same error messages.

Thanks.
 
Have you checked config.log in PHP directory when it fails? It would be nice to get it attached or sent via PM. If you find it difficult to do that, please let me know, I'll check the issue free of charge for you :)
 
Solved?

@ Martynas Bendorius. Thanks a lot. Could you let me know where config.log is located?

I issued the following directives and the error seems to be gone.

Code:
cd /usr/local/directadmin/custombuild
./build set new_zlib no
./build zlib
./build libxml2
./build libxslt
./build php n

While the build processes were being done, I noticed the following:

Code:
threads.c:53: warning: redundant redeclaration of 'pthread_once'
/usr/include/pthread.h:478: note: previous declaration of 'pthread_once' was here
threads.c:56: warning: redundant redeclaration of 'pthread_getspecific'
/usr/include/pthread.h:1103: note: previous declaration of 'pthread_getspecific' was here
threads.c:58: warning: redundant redeclaration of 'pthread_setspecific'
/usr/include/pthread.h:1106: note: previous declaration of 'pthread_setspecific' was here
threads.c:61: warning: redundant redeclaration of 'pthread_key_create'
/usr/include/pthread.h:1095: note: previous declaration of 'pthread_key_create' was here
threads.c:64: warning: redundant redeclaration of 'pthread_key_delete'
/usr/include/pthread.h:1100: note: previous declaration of 'pthread_key_delete' was here
threads.c:67: warning: function declaration isn't a prototype
threads.c:66: warning: redundant redeclaration of 'pthread_mutex_init'
/usr/include/pthread.h:733: note: previous declaration of 'pthread_mutex_init' was here
threads.c:69: warning: function declaration isn't a prototype
threads.c:68: warning: redundant redeclaration of 'pthread_mutex_destroy'
/usr/include/pthread.h:738: note: previous declaration of 'pthread_mutex_destroy' was here
threads.c:71: warning: function declaration isn't a prototype
threads.c:70: warning: redundant redeclaration of 'pthread_mutex_lock'
/usr/include/pthread.h:746: note: previous declaration of 'pthread_mutex_lock' was here
threads.c:73: warning: function declaration isn't a prototype
threads.c:72: warning: redundant redeclaration of 'pthread_mutex_unlock'
/usr/include/pthread.h:757: note: previous declaration of 'pthread_mutex_unlock' was here
threads.c:75: warning: function declaration isn't a prototype
threads.c:74: warning: redundant redeclaration of 'pthread_cond_init'
/usr/include/pthread.h:952: note: previous declaration of 'pthread_cond_init' was here
threads.c:77: warning: function declaration isn't a prototype
threads.c:76: warning: redundant redeclaration of 'pthread_cond_destroy'
/usr/include/pthread.h:957: note: previous declaration of 'pthread_cond_destroy' was here
threads.c:79: warning: function declaration isn't a prototype
threads.c:78: warning: redundant redeclaration of 'pthread_cond_wait'
/usr/include/pthread.h:973: note: previous declaration of 'pthread_cond_wait' was here
threads.c:81: warning: function declaration isn't a prototype
threads.c:80: warning: redundant redeclaration of 'pthread_equal'
/usr/include/pthread.h:1137: note: previous definition of 'pthread_equal' was here
threads.c:83: warning: function declaration isn't a prototype
threads.c:82: warning: redundant redeclaration of 'pthread_self'
/usr/include/pthread.h:267: note: previous declaration of 'pthread_self' was here
threads.c:85: warning: function declaration isn't a prototype
threads.c:84: warning: redundant redeclaration of 'pthread_key_create'
/usr/include/pthread.h:1095: note: previous declaration of 'pthread_key_create' was here
threads.c:87: warning: function declaration isn't a prototype
threads.c:86: warning: redundant redeclaration of 'pthread_key_delete'
/usr/include/pthread.h:1100: note: previous declaration of 'pthread_key_delete' was here
threads.c:89: warning: function declaration isn't a prototype
threads.c:88: warning: redundant redeclaration of 'pthread_cond_signal'
/usr/include/pthread.h:961: note: previous declaration of 'pthread_cond_signal' was here

and

Code:
testapi.c:18044: warning: 'gen_xmlSchematronPtr' defined but not used
testapi.c:18047: warning: 'des_xmlSchematronPtr' defined but not used
testapi.c:18064: warning: 'gen_xmlSchematronParserCtxtPtr' defined but not used
testapi.c:18067: warning: 'des_xmlSchematronParserCtxtPtr' defined but not used
testapi.c:34212: warning: 'gen_xmlSAXHandlerPtr_ptr' defined but not used
testapi.c:34215: warning: 'des_xmlSAXHandlerPtr_ptr' defined but not used

and

Code:
xsltlocale.c:210: warning: 'xsltDefaultRegion' defined but not used

At the end I do not receive any errors and apache is restarted successfully.
Do I need to worry about them, in spite of sucessful restart of apache?

Thanks
 
Last edited:
When compilation of PHP fails, you should be able to find it in php-*/config.log.
 
Back
Top