我已经安装了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
我已经安装了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
$ 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
对我而言可行。