Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

swoole版本4.5.9 编译安装swoole/ext-postgresql 4.4.18 make报错 #68

Open
mohuidong opened this issue Oct 25, 2021 · 2 comments
Open

Comments

@mohuidong
Copy link

mohuidong commented Oct 25, 2021

image,4.5.9没有找到对应版本下了4.4.18,make的时候编译报错:
/usr/local/software/ext-postgresql # make
/bin/sh /usr/local/software/ext-postgresql/libtool --mode=compile g++ -I. -I/usr/local/software/ext-postgresql -DPHP_ATOM_INC -I/usr/local/software/ext-postgresql/include -I/usr/local/software/ext-postgresql/main -I/usr/local/software/ext-postgresql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/software/ext-postgresql -I/usr/local/software/ext-postgresql/include -I/usr/local/include/php/ext/swoole -I/usr/local/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/software/ext-postgresql/swoole_postgresql_coro.cc -o swoole_postgresql_coro.lo
g++ -I. -I/usr/local/software/ext-postgresql -DPHP_ATOM_INC -I/usr/local/software/ext-postgresql/include -I/usr/local/software/ext-postgresql/main -I/usr/local/software/ext-postgresql -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/software/ext-postgresql -I/usr/local/software/ext-postgresql/include -I/usr/local/include/php/ext/swoole -I/usr/local/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/software/ext-postgresql/swoole_postgresql_coro.cc -fPIC -DPIC -o .libs/swoole_postgresql_coro.o
In file included from /usr/local/software/ext-postgresql/swoole_postgresql_coro.cc:17:
/usr/local/software/ext-postgresql/swoole_postgresql_coro.h:20:10: fatal error: ext/swoole/php_swoole_cxx.h: No such file or directory
20 | #include "ext/swoole/php_swoole_cxx.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:194: swoole_postgresql_coro.lo] Error 1
/usr/local/software/ext-postgresql # ln /usr/local/include/php/ext/swoole/ext-src/php_swoole_cxx.h ext/swoole/php_swoole_cxx.h
ln: ext/swoole/php_swoole_cxx.h: No such file or directory

@ant-qin
Copy link

ant-qin commented Jun 5, 2022

mee to

@luowencai
Copy link

same

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants