[root@localhost mysqli]# ./configure --with-php-config=/home/wcitywap/php/bin/php-config --with-mysqli=/usr/local/webserver/mysql/bin/mysql_config
[root@localhost mysqli]# make
/bin/sh /data0/software/php-5.3.8/ext/mysqli/libtool --mode=compile cc -I. -I/data0/software/php-5.3.8/ext/mysqli -DPHP_ATOM_INC -I/data0/software/php-5.3.8/ext/mysqli/include -I/data0/software/php-5.3.8/ext/mysqli/main -I/data0/software/php-5.3.8/ext/mysqli -I/home/wcitywap/php/include/php -I/home/wcitywap/php/include/php/main -I/home/wcitywap/php/include/php/TSRM -I/home/wcitywap/php/include/php/Zend -I/home/wcitywap/php/include/php/ext -I/home/wcitywap/php/include/php/ext/date/lib -I/usr/local/webserver/mysql/include/mysql -DHAVE_CONFIG_H -g -O2 -c /data0/software/php-5.3.8/ext/mysqli/mysqli.c -o mysqli.lo
mkdir .libs
cc -I. -I/data0/software/php-5.3.8/ext/mysqli -DPHP_ATOM_INC -I/data0/software/php-5.3.8/ext/mysqli/include -I/data0/software/php-5.3.8/ext/mysqli/main -I/data0/software/php-5.3.8/ext/mysqli -I/home/wcitywap/php/include/php -I/home/wcitywap/php/include/php/main -I/home/wcitywap/php/include/php/TSRM -I/home/wcitywap/php/include/php/Zend -I/home/wcitywap/php/include/php/ext -I/home/wcitywap/php/include/php/ext/date/lib -I/usr/local/webserver/mysql/include/mysql -DHAVE_CONFIG_H -g -O2 -c /data0/software/php-5.3.8/ext/mysqli/mysqli.c -fPIC -DPIC -o .libs/mysqli.o
In file included from /usr/local/webserver/mysql/include/mysql/my_global.h:85,
from /data0/software/php-5.3.8/ext/mysqli/php_mysqli_structs.h:61,
from /data0/software/php-5.3.8/ext/mysqli/mysqli.c:33:
/usr/local/webserver/mysql/include/mysql/my_config.h:1202:1: warning: "PACKAGE_NAME" redefined
In file included from /data0/software/php-5.3.8/ext/mysqli/mysqli.c:24:
/data0/software/php-5.3.8/ext/mysqli/config.h:56:1: warning: this is the location of the previous definition
In file included from /usr/local/webserver/mysql/include/mysql/my_global.h:85,
from /data0/software/php-5.3.8/ext/mysqli/php_mysqli_structs.h:61,
from /data0/software/php-5.3.8/ext/mysqli/mysqli.c:33:
/usr/local/webserver/mysql/include/mysql/my_config.h:1205:1: warning: "PACKAGE_STRING" redefined
In file included from /data0/software/php-5.3.8/ext/mysqli/mysqli.c:24:
/data0/software/php-5.3.8/ext/mysqli/config.h:59:1: warning: this is the location of the previous definition
In file included from /usr/local/webserver/mysql/include/mysql/my_global.h:85,
from /data0/software/php-5.3.8/ext/mysqli/php_mysqli_structs.h:61,
from /data0/software/php-5.3.8/ext/mysqli/mysqli.c:33:
/usr/local/webserver/mysql/include/mysql/my_config.h:1208:1: warning: "PACKAGE_TARNAME" redefined
In file included from /data0/software/php-5.3.8/ext/mysqli/mysqli.c:24:
/data0/software/php-5.3.8/ext/mysqli/config.h:62:1: warning: this is the location of the previous definition
In file included from /usr/local/webserver/mysql/include/mysql/my_global.h:85,
from /data0/software/php-5.3.8/ext/mysqli/php_mysqli_structs.h:61,
from /data0/software/php-5.3.8/ext/mysqli/mysqli.c:33:
/usr/local/webserver/mysql/include/mysql/my_config.h:1211:1: warning: "PACKAGE_VERSION" redefined
In file included from /data0/software/php-5.3.8/ext/mysqli/mysqli.c:24:
/data0/software/php-5.3.8/ext/mysqli/config.h:65:1: warning: this is the location of the previous definition
In file included from /usr/local/webserver/mysql/include/mysql/my_global.h:85,
from /data0/software/php-5.3.8/ext/mysqli/php_mysqli_structs.h:61,
from /data0/software/php-5.3.8/ext/mysqli/mysqli.c:33:
/usr/local/webserver/mysql/include/mysql/my_config.h:1229:1: warning: "SIZEOF_CHAR" redefined
In file included from /home/wcitywap/php/include/php/TSRM/tsrm_config.h:1,
from /home/wcitywap/php/include/php/TSRM/tsrm_config_common.h:13,
from /home/wcitywap/php/include/php/TSRM/tsrm_virtual_cwd.h:27,
from /home/wcitywap/php/include/php/main/php.h:411,
from /data0/software/php-5.3.8/ext/mysqli/mysqli.c:29:
/home/wcitywap/php/include/php/main/../main/php_config.h:127:1: warning: this is the location of the previous definition
In file included from /data0/software/php-5.3.8/ext/mysqli/php_mysqli_structs.h:77,
from /data0/software/php-5.3.8/ext/mysqli/mysqli.c:33:
/usr/local/webserver/mysql/include/mysql/my_sys.h:1027:27: error: mysql/psi/psi.h: No such file or directory
In file included from /data0/software/php-5.3.8/ext/mysqli/php_mysqli_structs.h:81,
from /data0/software/php-5.3.8/ext/mysqli/mysqli.c:33:
/usr/local/webserver/mysql/include/mysql/m_string.h:285:26: error: mysql/plugin.h: No such file or directory
make: *** [mysqli.lo] Error 1
mysq l版本 mysql-5.5.3-m3.tar.gz
php 版本5.3.8
--转自