编译php错误 make: *** [ext/mysqli/mysqli.lo] Error 1

这个是在编译php的时候执行make的时候出现的,前面./configure是没有问题的


/usr/local/src/php-5.3.5/ext/mysqli/mysqli.c: In function 'zm_startup_mysqli':
/usr/local/src/php-5.3.5/ext/mysqli/mysqli.c:644: error: 'MYSQL_RPL_MASTER' undeclared (first use in this function)
/usr/local/src/php-5.3.5/ext/mysqli/mysqli.c:644: error: (Each undeclared identifier is reported only once
/usr/local/src/php-5.3.5/ext/mysqli/mysqli.c:644: error: for each function it appears in.)
/usr/local/src/php-5.3.5/ext/mysqli/mysqli.c:645: error: 'MYSQL_RPL_SLAVE' undeclared (first use in this function)
/usr/local/src/php-5.3.5/ext/mysqli/mysqli.c:646: error: 'MYSQL_RPL_ADMIN' undeclared (first use in this function)
make: *** [ext/mysqli/mysqli.lo] Error 1

解决方法:

root@woyoo php-5.3.5]# mkdir /app/mysql/include/mysql
[root@woyoo php-5.3.5]# ln -s /app/mysql/include/* /app/mysql/include/mysql
[root@woyoo php-5.3.5]# make ZEND_EXTRA_LIBS='-liconv'


引用 http://woyoo.org/databases/make-ext-mysqli-mysqli-lo-error-1.html


你可能感兴趣的:(网站架构)