首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
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>
发布于4年前 · 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
回复
微信公众号
热门内容
暂无回复的问答
- CodeGalaxy K3s 轻量集群节点之间如何实现负载均衡
- 关于openssl CURL WARNING swSSL_connect: SSL_connect(fd=69) failed. Error: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small[1|394]
- 多个模型如何进行事务异常回退?
- websocket开启wss报错
- 协程tcp服务器如何使用多进程?recv()方法接收信息,打印出来的pid一直是同一个。没用使用到多进程啊。