
linux系统 安装php扩展mysqli 出现错误make: *** [mysqli.lo] 错误 1
linux系统下/usr/local/php/bin/phpizeConfiguringfor:PHPApiVersion:20131106ZendModuleApiNo...
linux 系统下
/usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
./configure -prefix=/usr/local/mysqli --with-php-config=/usr/local/php/bin/php-config
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
结果 没问题
然后:
make&&make install
出错:
/bin/sh /data/www/soft/php-5.6.32/ext/mysqli/libtool --mode=compile cc -I. -I/data/www/soft/php-5.6.32/ext/mysqli -DPHP_ATOM_INC -I/data/www/soft/php-5.6.32/ext/mysqli/include -I/data/www/soft/php-5.6.32/ext/mysqli/main -I/data/www/soft/php-5.6.32/ext/mysqli -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /data/www/soft/php-5.6.32/ext/mysqli/mysqli.c -o mysqli.lo
mkdir .libs
cc -I. -I/data/www/soft/php-5.6.32/ext/mysqli -DPHP_ATOM_INC -I/data/www/soft/php-5.6.32/ext/mysqli/include -I/data/www/soft/php-5.6.32/ext/mysqli/main -I/data/www/soft/php-5.6.32/ext/mysqli -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /data/www/soft/php-5.6.32/ext/mysqli/mysqli.c -fPIC -DPIC -o .libs/mysqli.o
在包含自 /data/www/soft/php-5.6.32/ext/mysqli/mysqli.c:34 的文件中:
/data/www/soft/php-5.6.32/ext/mysqli/php_mysqli_structs.h:42:33: 错误:ext/mysqlnd/mysqlnd.h:没有那个文件或目录
‘php_mysqli_dtor_p_elements’中:
.......
/data/www/soft/php-5.6.32/ext/mysqli/mysqli.c:1238: 错误:‘MYSQLND_MYSQLI’未声明(在此函数内第一次使用)
/data/www/soft/php-5.6.32/ext/mysqli/mysqli.c: 在函数‘php_mysqli_fetch_into_hash’中:
/data/www/soft/php-5.6.32/ext/mysqli/mysqli.c:1248: 错误:‘MYSQL_RES’未声明(在此函数内第一次使用)
/data/www/soft/php-5.6.32/ext/mysqli/mysqli.c:1248: 错误:‘result’未声明(在此函数内第一次使用)
/data/www/soft/php-5.6.32/ext/mysqli/mysqli.c:1284: 错误:expected expression before ‘)’ token
/data/www/soft/php-5.6.32/ext/mysqli/mysqli.c:1291: 错误:提供给函数‘php_mysqli_fetch_into_hash_aux’的实参太多
make: *** [mysqli.lo] 错误 1 展开
/usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
./configure -prefix=/usr/local/mysqli --with-php-config=/usr/local/php/bin/php-config
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
结果 没问题
然后:
make&&make install
出错:
/bin/sh /data/www/soft/php-5.6.32/ext/mysqli/libtool --mode=compile cc -I. -I/data/www/soft/php-5.6.32/ext/mysqli -DPHP_ATOM_INC -I/data/www/soft/php-5.6.32/ext/mysqli/include -I/data/www/soft/php-5.6.32/ext/mysqli/main -I/data/www/soft/php-5.6.32/ext/mysqli -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /data/www/soft/php-5.6.32/ext/mysqli/mysqli.c -o mysqli.lo
mkdir .libs
cc -I. -I/data/www/soft/php-5.6.32/ext/mysqli -DPHP_ATOM_INC -I/data/www/soft/php-5.6.32/ext/mysqli/include -I/data/www/soft/php-5.6.32/ext/mysqli/main -I/data/www/soft/php-5.6.32/ext/mysqli -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /data/www/soft/php-5.6.32/ext/mysqli/mysqli.c -fPIC -DPIC -o .libs/mysqli.o
在包含自 /data/www/soft/php-5.6.32/ext/mysqli/mysqli.c:34 的文件中:
/data/www/soft/php-5.6.32/ext/mysqli/php_mysqli_structs.h:42:33: 错误:ext/mysqlnd/mysqlnd.h:没有那个文件或目录
‘php_mysqli_dtor_p_elements’中:
.......
/data/www/soft/php-5.6.32/ext/mysqli/mysqli.c:1238: 错误:‘MYSQLND_MYSQLI’未声明(在此函数内第一次使用)
/data/www/soft/php-5.6.32/ext/mysqli/mysqli.c: 在函数‘php_mysqli_fetch_into_hash’中:
/data/www/soft/php-5.6.32/ext/mysqli/mysqli.c:1248: 错误:‘MYSQL_RES’未声明(在此函数内第一次使用)
/data/www/soft/php-5.6.32/ext/mysqli/mysqli.c:1248: 错误:‘result’未声明(在此函数内第一次使用)
/data/www/soft/php-5.6.32/ext/mysqli/mysqli.c:1284: 错误:expected expression before ‘)’ token
/data/www/soft/php-5.6.32/ext/mysqli/mysqli.c:1291: 错误:提供给函数‘php_mysqli_fetch_into_hash_aux’的实参太多
make: *** [mysqli.lo] 错误 1 展开
1个回答
展开全部
没遇到过这样的问题,不能yum安装吗?
像是版本不兼容问题导致,介绍下系统版本、php版本、mysql版本、安装方法,看这边是否有环境试下。
像是版本不兼容问题导致,介绍下系统版本、php版本、mysql版本、安装方法,看这边是否有环境试下。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |