美文网首页
ERROR: unable to unpack /private

ERROR: unable to unpack /private

作者: 良先生爱生活 | 来源:发表于2020-05-12 18:33 被阅读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
    

    相关文章

      网友评论

          本文标题:ERROR: unable to unpack /private

          本文链接:https://www.haomeiwen.com/subject/ngrinhtx.html