首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
ext-postgresql 扩展安装失败
### 问题描述 在安装 ext-postgresql 扩展的时候,无法安装成功 ### Swoole版本,PHP版本,以及操作系统版本信息 php7.3.8 swoole4.5.2 centos7 ### 报错信息 ```php In file included from /home/ext-postgresql-master/swoole_postgresql_coro.cc:17:0: /home/ext-postgresql-master/swoole_postgresql_coro.h:20:39: fatal error: ext/swoole/php_swoole_cxx.h: No such file or directory #include "ext/swoole/php_swoole_cxx.h" ```
发布于6年前 · 5 次浏览 · 来自
提问
liyu
### 问题描述 在安装 ext-postgresql 扩展的时候,无法安装成功 ### Swoole版本,PHP版本,以及操作系统版本信息 php7.3.8 swoole4.5.2 centos7 ### 报错信息 ```php In file included from /home/ext-postgresql-master/swoole_postgresql_coro.cc:17:0: /home/ext-postgresql-master/swoole_postgresql_coro.h:20:39: fatal error: ext/swoole/php_swoole_cxx.h: No such file or directory #include "ext/swoole/php_swoole_cxx.h" ```
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2020-05-30
鲁飞
存在多个php吧,phpize和php-config指定一下绝对路径再试试
赞
0
回复
2020-05-30
liyu
回复
鲁飞
您好,我已经尝试指定绝对路径,报错信息没有改变,依然无法成功。 ```shell /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config ```
赞
0
回复
2020-05-31
liyu
回复
鲁飞
我现在尝试重新编译安装了swoole,然后将这个扩展放进swoole的源码进行编译安装,出现了另外一个错误 ```shell In file included from /home/swoole-4.5.2/swoole_postgresql_coro.cc:17:0: /home/swoole-4.5.2/swoole_postgresql_coro.h:35:33: fatal error: postgresql/libpq-fe.h: No such file or directory #include <postgresql/libpq-fe.h> ```
赞
0
回复
2020-05-31
鲁飞
回复
liyu
需要libpq库 https://wiki.swoole.com/#/coroutine_client/postgresql?id=%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85
赞
0
回复
2020-05-31
liyu
回复
鲁飞
这个问题我注意到了,文档反复看过,我的系统是cnetos7,已经安装了postgresql10-devel,没有起作用
赞
0
回复
2020-06-01
鲁飞
回复
liyu
https://github.com/swoole/ext-postgresql/issues/24#issuecomment-636439094 参考这里
赞
1
回复
2020-06-01
liyu
回复
鲁飞
已经解决了,非常感谢。
赞
0
回复