昨天我用pear 安装了phpunit,最后创建了一个从/usr/local/bin/behat 到/usr/local/Cellar/php54/5.4.16/bin/phpunit 的符号链接。
现在我正在尝试对 Behat 做同样的事情。我所做的是:
sudo pear upgrade PEAR
sudo pear channel-discover pear.behat.org
sudo pear install --alldeps behat/behat
现在,当我跑步时
$ /usr/local/Cellar/php54/5.4.16/bin/behat
我收到此错误:
PHP Fatal error: Class 'Symfony\Component\Console\Helper\ProgressHelper' not found in /usr/local/Cellar/php54/5.4.16/lib/php/Symfony/Component/Console/Application.php on line 973
PHP Stack trace:
PHP 1. {main}() /usr/local/Cellar/php54/5.4.16/bin/behat:0
PHP 2. Behat\Behat\Console\BehatApplication->__construct() /usr/local/Cellar/php54/5.4.16/bin/behat:26
PHP 3. Symfony\Component\Console\Application->__construct() /usr/local/Cellar/php54/5.4.16/lib/php/behat/src/Behat/Behat/Console/BehatApplication.php:32
PHP 4. Symfony\Component\Console\Application->getDefaultHelperSet() /usr/local/Cellar/php54/5.4.16/lib/php/Symfony/Component/Console/Application.php:83
Fatal error: Class 'Symfony\Component\Console\Helper\ProgressHelper' not found in /usr/local/Cellar/php54/5.4.16/lib/php/Symfony/Component/Console/Application.php on line 973
Call Stack:
0.0003 233344 1. {main}() /usr/local/Cellar/php54/5.4.16/bin/behat:0
0.0068 641984 2. Behat\Behat\Console\BehatApplication->__construct() /usr/local/Cellar/php54/5.4.16/bin/behat:26
0.0068 642072 3. Symfony\Component\Console\Application->__construct() /usr/local/Cellar/php54/5.4.16/lib/php/behat/src/Behat/Behat/Console/BehatApplication.php:32
0.0068 642512 4. Symfony\Component\Console\Application->getDefaultHelperSet() /usr/local/Cellar/php54/5.4.16/lib/php/Symfony/Component/Console/Application.php:83
任何帮助将不胜感激。