ERROR: unable to unpack /private

2020-05-12  本文已影响0人  良先生爱生活

pecl安装swoole出现很多问题,最后把源替换更新后再次尝试就安装好了

错误如下:
ERROR: unable to unpack /tmp/pear/download/swoole-4.4.4.tgz
ERROR: unable to unpack /private/tmp/pear/download/swoole-4.4.5.tgz

1、无法解析出源文件

ERROR: unable to unpack /tmp/pear/download/swoole-4.4.4.tgz
ERROR: unable to unpack /private/tmp/pear/download/swoole-4.4.5.tgz

解决方法:

sudo chmod -R 777 /tmp/pear/download/swoole*

2、无法连接到网站(可再次尝试)

Could not download from "https://pecl.php.net/get/swoole-4.5.1.tgz", cannot download "pecl/swoole" (Connection to `ssl://pecl.php.net:443' failed: )
Error: cannot download "pecl/swoole"

3、版本问题需更新系统源文件

WARNING: failed to download pecl.php.net/swoole-, additionally the suggested version () is the same as the locally installed one.

建议先进行源替换再安装swoole 阿里源

/etc/apt/sources.list
apt-get update
sudo apt-get  upgrade

更新 pecl 并安装swoole

sudo pecl channel-update pecl.php.net
sudo pecl install swoole
上一篇下一篇

猜你喜欢

热点阅读