在 ubuntu 10.04 上 php 降级到 5.2 后,梨下载包而不是安装 [英] Pear downloading packages instead of installing after php downgrading to 5.2 on ubuntu 10.04

查看:39
本文介绍了在 ubuntu 10.04 上 php 降级到 5.2 后,梨下载包而不是安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在 ubuntu 10.04 中将 php 降级到 5.2,但似乎无法安装新的 pear 包.我通过键入 pear list 获得的现有包是:

I've downgraded php to 5.2 in ubuntu 10.04 and it seems i can't install new pear packages. the existing packages i had by typing pear list are :

包版本状态
Archive_Tar 1.3.3 稳定版
Console_Getopt 1.2.3 稳定版
PEAR 1.9.0 稳定版
Structures_Graph 1.0.2 稳定版
XML_Util 1.2.1 稳定版

Package Version State
Archive_Tar 1.3.3 stable
Console_Getopt 1.2.3 stable
PEAR 1.9.0 stable
Structures_Graph 1.0.2 stable
XML_Util 1.2.1 stable

/usr/share/php/PEAR 中,有几个软件包似乎没有出现在列表中.我想安装 SOAP 但命令 pear install pear.php.net/SOAP-0.12.0 没有下载依赖包,而是安装它下载包本身.
过了一会儿,我发现它是在 /build/buildd/php5-5.2.10.dfsg.1/pear-build-download 中下载的,但是在我更改为该路径后,即使 pear install Mail_Mime-1.8.0.tgz 没有输出,它不会挂起或任何东西它只是返回提示.pear list 给出与上面完全相同的输出.

In /usr/share/php/PEAR there are few packages which seems not to be appearing on the list. I wanted to install SOAP but the command pear install pear.php.net/SOAP-0.12.0 is not downloading the dependent packages and instead of installing it downloads the package itself.
After a while i figured out that it was downloading in /build/buildd/php5-5.2.10.dfsg.1/pear-build-download but then after i changed to that path even the pear install Mail_Mime-1.8.0.tgz gives no output, it does not hang or anything it just gives back the prompt.the pear list gives the exact same output above.

我该如何处理?谢谢P.S:我在 Windows 7 上试过,它下载了所有的依赖项并安装了所有东西.感谢阅读

How can i deal with this? thanks P.S: i've tried on windows 7 and it downloads all the dependencies and installed everything. thanks for reading

推荐答案

您是否尝试过使用--force"参数?例如:

have you tried a using the "--force" argument? For example:

 pear upgrade --force Mail_Mime-1.8.0.tgz

这篇关于在 ubuntu 10.04 上 php 降级到 5.2 后,梨下载包而不是安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆