Error while trying to configure php

somemilk

New member
Joined
Jun 23, 2014
Messages
2
I'm trying to build php on Centos6.5:

Code:
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... yes
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
checking for mysql_set_server_option in -lmysqlclient... no
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
config.log contains this:

Code:
/usr/local/lib/libxml2.so: undefined reference to `gzopen64@ZLIB_1.2.3.3'
collect2: ld returned 1 exit status
configure: failed program was:
#line 61247 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_set_server_option();

int main() {
mysql_set_server_option()
; return 0; }

The most relevant answer I got after extensive searching is this: http://forum.directadmin.com/showthread.php?t=43000

It suggests updating/rebuilding libxml2 and zlib, but that doesn't help. I'm not sure where to look next.
 
Solved

Solved.

/usr/local/directadmin/custombuild/options.conf:
new_zlib=no

./build zlib
./build libxml2
./build libxslt
./build php n
 
Back
Top