我正在尝试在 OS X Mountain Lion 上安装 PHP CodeSniffer - 我似乎遇到了一个奇怪的问题
运行“phpcs”时出现以下错误:
PHP Warning: include_once(PHP/CodeSniffer/CLI.php): failed to open stream: No such
file or directory in /usr/lib/php/pear/bin/phpcs on line 31
PHP Warning: include_once(): Failed opening 'PHP/CodeSniffer/CLI.php' for inclusion
(include_path='.;/usr/lib/php/pear/share/pear/') in /usr/lib/php/pear/bin/phpcs on line 31
PHP Fatal error: Class 'PHP_CodeSniffer_CLI' not found in /usr/lib/php/pear/bin/phpcs
on line 34
文件 /usr/lib/php/pear/share/pear/PHP/CodeSniffer/CLI.php 存在,这让我很困惑