gpt4 book ai didi

PEAR - 没有可用于包的版本

转载 作者:行者123 更新时间:2023-12-01 14:30:21 31 4
gpt4 key购买 nike

当我试图通过 pear 下载一个包时,它给了我这个错误(它不仅适用于 phpunit):

No releases available for package "pear.phpunit.de/phpunit"
install failed

我尝试使用 sudo pear clear-cache 并显示:

/tmp/pear/cache does not exist or is not a directory

我还尝试了 sudo pear update-channels 并且一切都是最新的:

Updating channel "components.ez.no"
Channel "components.ez.no" is up to date
Updating channel "doc.php.net"
Channel "doc.php.net" is up to date
Updating channel "guzzlephp.org/pear"
Channel "guzzlephp.org/pear" is up to date
Updating channel "nikic.github.com/pear"
Channel "nikic.github.com/pear" is up to date
Updating channel "pear.amazonwebservices.com"
Channel "pear.amazonwebservices.com" is up to date
Updating channel "pear.andrewsville.cz"
Channel "pear.andrewsville.cz" is up to date
Updating channel "pear.apache.org/log4php"
Channel "pear.apache.org/log4php" is up to date
Updating channel "pear.apache.org/oodt"
Channel "pear.apache.org/oodt" is up to date
Updating channel "pear.apache.org/zetacomponents"
Channel "pear.apache.org/zetacomponents" is up to date
Updating channel "pear.apigen.org"
Channel "pear.apigen.org" is not responding over http://, failed with message: File http://pear.apigen.org:80/channel.xml not valid (received: HTTP/1.1 404 Not Found
)
Trying channel "pear.apigen.org" over https:// instead
Cannot retrieve channel.xml for channel "pear.apigen.org" (File https://pear.apigen.org:443/channel.xml not valid (received: HTTP/1.1 500 Domain Not Found
))
Updating channel "pear.doctrine-project.org"
Channel "pear.doctrine-project.org" is up to date
Updating channel "pear.dropbox-php.com"
Channel "pear.dropbox-php.com" is up to date
Updating channel "pear.horde.org"
Channel "pear.horde.org" is up to date
Updating channel "pear.kukulich.cz"
Channel "pear.kukulich.cz" is up to date
Updating channel "pear.michelf.com"
Channel "pear.michelf.com" is up to date
Updating channel "pear.netpirates.net"
Channel "pear.netpirates.net" is up to date
Updating channel "pear.nette.org"
Channel "pear.nette.org" is up to date
Updating channel "pear.pdepend.org"
Channel "pear.pdepend.org" is up to date
Updating channel "pear.phing.info"
Channel "pear.phing.info" is up to date
Updating channel "pear.php.net"
Channel "pear.php.net" is up to date
Updating channel "pear.phpdoc.org"
Channel "pear.phpdoc.org" is up to date
Updating channel "pear.phpmd.org"
Channel "pear.phpmd.org" is up to date
Updating channel "pear.phpunit.de"
Channel "pear.phpunit.de" is not responding over http://, failed with message: File http://pear.phpunit.de:80/channel.xml not valid (received: HTTP/1.1 410 Gone
)
Trying channel "pear.phpunit.de" over https:// instead
Cannot retrieve channel.xml for channel "pear.phpunit.de" (File https://pear.phpunit.de:443/channel.xml not valid (received: HTTP/1.1 410 Gone
))
Updating channel "pear.propelorm.org"
Channel "pear.propelorm.org" is up to date
Updating channel "pear.symfony-project.com"
Channel "pear.symfony-project.com" is up to date
Updating channel "pear.symfony.com"
Channel "pear.symfony.com" is up to date
Updating channel "pear.texy.info"
Channel "pear.texy.info" is up to date
Updating channel "pear.twig-project.org"
Channel "pear.twig-project.org" is up to date
Updating channel "pecl.php.net"
Channel "pecl.php.net" is up to date
milen@milen-Inspiron-N5010:/opt/lampp/php$ sudo pear install --alldeps --force phpunit/phpunit
No releases available for package "pear.phpunit.de/phpunit"
install failed
milen@milen-Inspiron-N5010:/opt/lampp/php$ pear install PHP_CodeSniffer
No releases available for package "pear.php.net/PHP_CodeSniffer"
install failed
milen@milen-Inspiron-N5010:/opt/lampp/php$ sudo pear clear-cache
/tmp/pear/cache does not exist or is not a directory
milen@milen-Inspiron-N5010:/opt/lampp/php$ sudo pear clear-cache/tmp/pear/cache does not exist or is not a directory
milen@milen-Inspiron-N5010:/opt/lampp/php$ sudo pear update-channelsUpdating channel "components.ez.no"
Channel "components.ez.no" is up to date
Updating channel "doc.php.net"
Channel "doc.php.net" is up to date
Updating channel "guzzlephp.org/pear"
Channel "guzzlephp.org/pear" is up to date
Updating channel "nikic.github.com/pear"
Channel "nikic.github.com/pear" is up to date
Updating channel "pear.amazonwebservices.com"
Channel "pear.amazonwebservices.com" is up to date
Updating channel "pear.andrewsville.cz"
Channel "pear.andrewsville.cz" is up to date
Updating channel "pear.apache.org/log4php"
Channel "pear.apache.org/log4php" is up to date
Updating channel "pear.apache.org/oodt"
Channel "pear.apache.org/oodt" is up to date
Updating channel "pear.apache.org/zetacomponents"
Channel "pear.apache.org/zetacomponents" is up to date
Updating channel "pear.apigen.org"
Channel "pear.apigen.org" is not responding over http://, failed with message: File http://pear.apigen.org:80/channel.xml not valid (received: HTTP/1.1 404 Not Found
)
Trying channel "pear.apigen.org" over https:// instead
Cannot retrieve channel.xml for channel "pear.apigen.org" (File https://pear.apigen.org:443/channel.xml not valid (received: HTTP/1.1 500 Domain Not Found
))
Updating channel "pear.doctrine-project.org"
Channel "pear.doctrine-project.org" is up to date
Updating channel "pear.dropbox-php.com"
Channel "pear.dropbox-php.com" is up to date
Updating channel "pear.horde.org"
Channel "pear.horde.org" is up to date
Updating channel "pear.kukulich.cz"
Channel "pear.kukulich.cz" is up to date
Updating channel "pear.michelf.com"
Channel "pear.michelf.com" is up to date
Updating channel "pear.netpirates.net"
Channel "pear.netpirates.net" is up to date
Updating channel "pear.nette.org"
Channel "pear.nette.org" is up to date
Updating channel "pear.pdepend.org"
Channel "pear.pdepend.org" is up to date
Updating channel "pear.phing.info"
Channel "pear.phing.info" is up to date
Updating channel "pear.php.net"
Channel "pear.php.net" is up to date
Updating channel "pear.phpdoc.org"
Channel "pear.phpdoc.org" is up to date
Updating channel "pear.phpmd.org"
Channel "pear.phpmd.org" is up to date
Updating channel "pear.phpunit.de"
Channel "pear.phpunit.de" is not responding over http://, failed with message: File http://pear.phpunit.de:80/channel.xml not valid (received: HTTP/1.1 410 Gone
)
Trying channel "pear.phpunit.de" over https:// instead
Cannot retrieve channel.xml for channel "pear.phpunit.de" (File https://pear.phpunit.de:443/channel.xml not valid (received: HTTP/1.1 410 Gone
))
Updating channel "pear.propelorm.org"
Channel "pear.propelorm.org" is up to date
Updating channel "pear.symfony-project.com"
Channel "pear.symfony-project.com" is up to date
Updating channel "pear.symfony.com"
Channel "pear.symfony.com" is up to date
Updating channel "pear.texy.info"
Channel "pear.texy.info" is up to date
Updating channel "pear.twig-project.org"
Channel "pear.twig-project.org" is up to date
Updating channel "pecl.php.net"
Channel "pecl.php.net" is up to date

它仍然无法下载任何东西,这是怎么回事?

最佳答案

phpunit 不再通过 pear 可用(自 2014 年 12 月起)。您可以将其下载为 .phar 文件或改为通过 composer 安装。

More details are available on the phpunit.de website.

关于PEAR - 没有可用于包的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28970081/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com