php5.5.38增加mysqli扩展

编译的时候正常:

./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"

相关文章

优化MySQL数据库发布系统存储的方法有:1.mysql库主从读写分...
使用mysql的方法:在“我的电脑”→右键→“管理”→“服务”...
在mysql中查看root用户权限的方法:1.命令行启动mysql服务;...
MySQL主从复制是用来备份一个与主数据库一样环境的从数据库,...
运行mysql的方法1.启动mysql服务,在“我的电脑”→右键→“...
开启mysql的方法1.可以通过快捷键win+r,输入cmd,打开窗口,...