在编译安装swoole时出现 configure: error: Cannot find php-config. Please use --with-php-config=PATH
那是因为没有指定PHP的配置文件 所以我们想要知道PHP的文件在哪的时候输入以下命令
find / -name php-config
[root@localhost swoole-src-4.3.6]# find / -name php-config
/www/server/php/72/bin/php-config
[root@localhost swoole-src-4.3.6]#
然后在编译的时候加上–with-php-config=/www/server/php/72/bin/php-config
./configure --with-php-config=/www/server/php/72/bin/php-config
到执行make时出现make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** 没有指明目标并且找不到 makefile。 停止。
可能是没有安装gcc导致 安装命令如下
yum install gcc