Dreamhost - Latest version of PEAR

て烟熏妆下的殇ゞ 提交于 2019-12-11 12:15:10

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/19172730/dreamhost-latest-version-of-pear

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!