php7.4编译安装swoole和处理Makefile:398: recipe for target 'swoole_runtime.lo' failed报错

2021-03-04 05:28

阅读:513

标签:info   编译安装   查看   wget   efi   time   inf   amp   处理   

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查看是否安装成功

技术图片
`

php7.4编译安装swoole和处理Makefile:398: recipe for target 'swoole_runtime.lo' failed报错

标签:info   编译安装   查看   wget   efi   time   inf   amp   处理   

原文地址:https://www.cnblogs.com/trblog/p/13266028.html


评论


亲,登录后才可以留言!