php7.4编译安装swoole和处理Makefile:398: recipe for target \'swoole_runtime.lo\' failed报错
编译安装swoole
下载:wget http://pecl.php.net/get/swoole-4.3.5.tgz
解压: tar -zxvf swoole-4.3.5.tgz
进入解压目录:cd swoole-4.3.5/
生成configure: /usr/local/php74/bin/phpiz
编译: ./configure --with-php-config=/usr/local/php74/bin/php-config
安装: make && make install
报错: Makefile:398: recipe for target \'swoole_runtime.lo\' failed
解决:我更换了swoole4.4.18版本后make成功
下载地址: wget http://pecl.php.net/get/swoole-4.4.18.tgz
最后需要在php.ini中加载扩展:
extension=swoole.so
重启php-fpm
/usr/local/php74/sbin/php-fpm reload
php -m
查看是否安装成功
`