简体   繁体   English

卸载PEAR软件包后无法重新安装它们(Auth和DB)

[英]Unable to re install PEAR packages after uninstalling them (Auth & DB)

So I am working in Larry Ullman's PHP 5 Advanced book and Chapter 4 has me using PEAR to install Auth and DB (even though DB package has been deprecated). 因此,我正在研究Larry Ullman的PHP 5 Advanced书籍,而第4章让我使用PEAR安装Auth和DB(即使不赞成使用DB软件包)。 So I had to pause and do some tutorials on PEAR, because I have never used it before. 所以我不得不停下来并做一些关于PEAR的教程,因为我以前从未使用过它。

In the midst of checking out and testing the install / uninstall commands I came across this error when trying to re install Auth, DB and a couple of others: 在检出并测试安装/卸载命令的过程中,当我尝试重新安装 Auth,DB和其他几个时,遇到了此错误:

    No releases available for package "pear.php.net/Auth"
    install failed

I only get this error with those select few packages. 我只会在选择的那些软件包中收到此错误。 All others I can uninstall and re install all day long. 所有其他我可以一整天卸载并重新安装。 I have tried ever install/uninstall [options] cobination I can come up with, but still receive this message when trying to install. 我曾经尝试过安装/卸载[options]组合,但在尝试安装时仍会收到此消息。 Any ideas? 有任何想法吗?

Try to clear the cache and then re-installing the package: 尝试清除缓存,然后重新安装软件包:

$ pear clear-cache
$ pear install auth

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM