我已经安装了Mountain Lion,但无法使phpunit工作。

$ pear config-get bin_dir
/Users/greg/pear/bin


$cd /Users/greg/pear/bin
$ls
pear*
peardev*
pecl*
phpunit*

$phpunit
-bash: phpunit: command not found

最佳答案

阅读此博客文章:http://vanderveer.be/blog/2012/10/12/setting-up-my-perfect-developer-environment-on-osx-10-dot-8-mountain-lion-10-dot-8-2-final-edition/

$ sudo cp /private/etc/php.ini.default /private/etc/php.ini
$ sudo php /usr/lib/php/install-pear-nozlib.phar
$ pear config-set php_ini /private/etc/php.ini
$ pecl config-set php_ini /private/etc/php.ini
$ sudo pear upgrade-all


为我工作。

关于phpunit - OSX 10.8山狮 pear/PHPUnit不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11727574/

10-15 06:10