我使用的是ubuntu 12.04
我使用以下命令安装了php pear
sudo apt-get install php-pear php5-dev我得到了这个结果
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php-pear is already the newest version.
php5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.现在,当我使用以下命令时
sudo pecl install v8js-0.1.3我得到了这个错误
sudo: pecl: command not found有人能告诉我如何修复这个错误吗?谢谢你
发布于 2013-10-22 17:37:49
我们需要梨!由于某些原因,它没有设置为在Lion上就绪,但是安装phar文件在这里,所以我们只需要运行它。
cd /usr/lib/php sudo php install-pear-nozlib.phar
编辑: /etc/php.ini并找到行:;include_path = ".:/php/includes“并将其更改为: include_path = ".:/usr/lib/php/ pear”sudo pear channel-update pear.php.net sudo pear channel-update pecl.php.net sudo pear upgrade-all
https://stackoverflow.com/questions/18128517
复制相似问题