我通过再次安装pear来排序。下载go-pear.phar后运行
sudo php -d detect_unicode=0 go-pear.phar
在安装中有更改pear正在使用的目录的选项。他们已经被设置为我的新php的正确位置,例如/ usr/local/php5/bin
然后,我必须将该路径添加到我的bash_profile中,以便识别pear命令。
export PATH=$PATH:/usr/local/php5/bin
要获得PECL再次合作我删除PECL从/ usr/bin中,然后符号链接到在/ usr /本地/ PHP5/bin中
sudo ln -s /usr/local/php5/bin/pecl /usr/bin/pecl
我试图安装第一包是APC的PECL和我
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed
这是通过下面的说明排序从phpize won't work on Mac OS X Lion我用自制的解决方案错误
更新:我安装然后PHPUnit的细跑phpunit --version
这给了
PHP Warning: require(/usr/lib/php/pear/PHPUnit/Autoload.php): failed to open stream: No such file or directory in /usr/bin/phpunit on line 43
运行which phpunit
返回/usr/bin/phpunit
由多个符号链接
sudo ln -s /usr/local/php5/bin/phpunit phpunit
谢谢,在优胜美地工作 – 2014-07-15 14:11:28