Dreamhost - PEAR 的最新版本 [英] Dreamhost - Latest version of PEAR

查看:94
本文介绍了Dreamhost - PEAR 的最新版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Dreamhost 帐户使用 SSH.

我需要通过 pear 安装 HTTP_Request2 PHP 库

梨安装 HTTP_Request2

给出以下错误

pear/HTTP_Request2 需要 PEAR 安装程序(版本 >= 1.9.2),安装版本为 1.9.1

这是pear -V

的输出

梨版本:1.9.1

我尝试在 Dreamhost 服务器上强制升级

pear upgrade --force http://pear.php.net/get/PEAR-1.9.2 甚至pear install PEAR-1.9.4

但此错误为:pear/PEAR 已安装并且与发布的版本 1.9.4 相同安装失败

有人遇到过类似的问题吗?

解决方案

您安装了两个版本的 pear.您运行的那个,以及您升级的那个.

which pear 将返回与 pear list-files pear|grep script 不同的路径;那是你的问题.

要么运行已安装的(来自列表文件),要么设置路径以便 which pear-version 得到更新(pear config-show梨形配置集).

无法通过 PEAR 安装 PHPUnit,需要 PEAR Installer >= 1.9.2,无法从 1.9.0 升级 PEAR 了解更多信息.

I'm on SSH on my Dreamhost account.

I need to install the HTTP_Request2 PHP library via pear

pear install HTTP_Request2

gives the following error

pear/HTTP_Request2 requires PEAR Installer (version >= 1.9.2), installed version is 1.9.1

Here's the output of pear -V

PEAR Version: 1.9.1

I tried forcing an upgrade on the Dreamhost server

pear upgrade --force http://pear.php.net/get/PEAR-1.9.2 and even pear install PEAR-1.9.4

but this errors out to: pear/PEAR is already installed and is the same as the released version 1.9.4 install failed

Anyone experience similar issues?

解决方案

You have two versions of pear installed. The one you run, and the one you upgrade.

which pear will return a different path than pear list-files pear|grep script; that's your problem.

Either run the installed one (from list-files), or set the paths so that the which pear-version gets updated (pear config-show and pear config-set).

See Can't install PHPUnit via PEAR, requires PEAR Installer >= 1.9.2, can't upgrade PEAR from 1.9.0 for more info.

这篇关于Dreamhost - PEAR 的最新版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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