微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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"

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐