我已经在ubuntu中安装了PEAR
sudo apt-get install php-pear在成功安装了第一个time.When之后,我尝试在终端中运行它,它显示了错误:
The program 'pear' is currently not installed. You can install it by typing:
sudo apt-get install php-pear我又试着安装它。然后它就表明
php-pear is already the newest version.我已经核对了许多关于这个的问题。在每一个问题中都提到了定位、梨等问题,但上述误差并没有得到解决。
我甚至多次尝试用sudo安装pear并运行它。它也会产生同样的错误。
请帮忙解决这件事。
发布于 2014-05-31 10:36:10
软件包php-pear在Ubuntu12.04中只适用于PHPPH5.2
对于PHP5.3,请使用>= 5.3
wget http://pear.php.net/go-pear.phar
php go-pear.phar发布于 2014-05-31 10:42:48
只需删除PEAR和PHP,然后从头开始。我希望这能解决你的问题。
https://stackoverflow.com/questions/23887714
复制相似问题