1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > mysql5.5 mysqli_php5.5.38增加mysqli扩展

mysql5.5 mysqli_php5.5.38增加mysqli扩展

时间:2023-08-24 19:16:24

相关推荐

mysql5.5 mysqli_php5.5.38增加mysqli扩展

php5.5.38增加mysqli扩展

发布时间:-08-28 03:43:17

来源:51CTO

阅读:1148

作者:xingyun

编译的时候正常:

./configure --prefix=/usr/local/mysqli --with-php-config=/usr/local/php/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config

在make的时候报以下错误:

/usr/local/mysql/include/mysql/my_config.h:1147:1: warning: "PACKAGE_VERSION" redefined

In file included from /usr/local/php/include/php/TSRM/tsrm_config.h:1,

from /usr/local/php/include/php/TSRM/tsrm_config_common.h:13,

from /usr/local/php/include/php/TSRM/tsrm_virtual_cwd.h:27,

from /usr/local/php/include/php/main/php.h:401,

from /usr/local/php-5.5.38/ext/mysqli/mysqli_api.c:29:

/usr/local/php/include/php/main/../main/php_config.h:2113:1: warning: this is the location of the previous definition

/usr/local/php-5.5.38/ext/mysqli/mysqli_api.c:36:47: error: ext/mysqlnd/mysql_float_to_double.h: No such file or directory

make: *** [mysqli_api.lo] Error 1

解决方法:

修改 vim /usr/local/php-5.5.38/ext/mysqli/mysqli_api.c文件

将#include "ext/mysqlnd/mysql_float_to_double.h" 修改为绝对路径:

#include "/usr/local/php-5.5.38/ext/mysqlnd/mysql_float_to_double.h"

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。