首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
swoole4.4.16安装ext-postgresql时候出现报错问题
我安装的swoole是4.4.16 ext-postgresql也是4.4.16,php是7.4.7,可以通过配置,但是make时候出现以下报错情况,请问是什么原因: /bin/sh /usr/local/ext-postgresql-4.4.16/libtool --mode=compile g++ -I. -I/usr/local/ext-postgresql-4.4.16 -DPHP_ATOM_INC -I/usr/local/ext-postgresql-4.4.16/include -I/usr/local/ext-postgresql-4.4.16/main -I/usr/local/ext-postgresql-4.4.16 -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 -I/usr/local/ext-postgresql-4.4.16 -I/usr/local/ext-postgresql-4.4.16/include -I/usr/local/php/include/php/ext/swoole -I/usr/local/php/include/php/ext/swoole/include -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /usr/local/ext-postgresql-4.4.16/swoole_postgresql_coro.cc -o swoole_postgresql_coro.lo g++ -I. -I/usr/local/ext-postgresql-4.4.16 -DPHP_ATOM_INC -I/usr/local/ext-postgresql-4.4.16/include -I/usr/local/ext-postgresql-4.4.16/main -I/usr/local/ext-postgresql-4.4.16 -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 -I/usr/local/ext-postgresql-4.4.16 -I/usr/local/ext-postgresql-4.4.16/include -I/usr/local/php/include/php/ext/swoole -I/usr/local/php/include/php/ext/swoole/include -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /usr/local/ext-postgresql-4.4.16/swoole_postgresql_coro.cc -fPIC -DPIC -o .libs/swoole_postgresql_coro.o In file included from /usr/local/ext-postgresql-4.4.16/swoole_postgresql_coro.cc:17: /usr/local/ext-postgresql-4.4.16/swoole_postgresql_coro.h:35:10: fatal error: postgresql/libpq-fe.h: No such file or directory #include <postgresql/libpq-fe.h>
发布于6年前 · 2 次浏览 · 来自
提问
程序男孩
我安装的swoole是4.4.16 ext-postgresql也是4.4.16,php是7.4.7,可以通过配置,但是make时候出现以下报错情况,请问是什么原因: /bin/sh /usr/local/ext-postgresql-4.4.16/libtool --mode=compile g++ -I. -I/usr/local/ext-postgresql-4.4.16 -DPHP_ATOM_INC -I/usr/local/ext-postgresql-4.4.16/include -I/usr/local/ext-postgresql-4.4.16/main -I/usr/local/ext-postgresql-4.4.16 -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 -I/usr/local/ext-postgresql-4.4.16 -I/usr/local/ext-postgresql-4.4.16/include -I/usr/local/php/include/php/ext/swoole -I/usr/local/php/include/php/ext/swoole/include -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /usr/local/ext-postgresql-4.4.16/swoole_postgresql_coro.cc -o swoole_postgresql_coro.lo g++ -I. -I/usr/local/ext-postgresql-4.4.16 -DPHP_ATOM_INC -I/usr/local/ext-postgresql-4.4.16/include -I/usr/local/ext-postgresql-4.4.16/main -I/usr/local/ext-postgresql-4.4.16 -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 -I/usr/local/ext-postgresql-4.4.16 -I/usr/local/ext-postgresql-4.4.16/include -I/usr/local/php/include/php/ext/swoole -I/usr/local/php/include/php/ext/swoole/include -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /usr/local/ext-postgresql-4.4.16/swoole_postgresql_coro.cc -fPIC -DPIC -o .libs/swoole_postgresql_coro.o In file included from /usr/local/ext-postgresql-4.4.16/swoole_postgresql_coro.cc:17: /usr/local/ext-postgresql-4.4.16/swoole_postgresql_coro.h:35:10: fatal error: postgresql/libpq-fe.h: No such file or directory #include <postgresql/libpq-fe.h>
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2020-07-02
鲁飞
先查看是否安装libpq库 安装以后修改`swoole_postgresql_coro.h`这个文件里的35行 ``` #include <postgresql/libpq-fe.h> ``` `postgresql/`删掉 低版本的`ext-postgresql`这么处理就可以了
赞
0
回复