我正在尝试在我的Ubuntu 13.04上安装phploc,但似乎无法工作。以下是我遵循的步骤。
$ sudo pear config-set auto_discover 1
$ sudo pear install phpunit/phploc
phpunit/phploc can optionally use PHP extension "bytekit"
downloading phploc-1.7.4.tgz ...
Starting to download phploc-1.7.4.tgz (10,134 bytes) .....
done: 10,134 bytes
install ok: channel://pear.phpunit.de/phploc-1.7.4 .de/phploc
当我输入phploc时,出现以下错误: $ phploc PHP警告: require_once(SebastianBergmann/FinderFacade/autoload.php):打开流失败:在/usr/share/php/SebastianBergmann/PHPLOC/autoload.php的第44行中没有这样的文件或目录 PHP堆栈跟踪: PHP 1. {main}() /usr/bin/phploc:0 PHP 2. require() /usr/bin/phploc:48 PHP致命错误:require_once():在/usr/share/php/SebastianBergmann/PHPLOC/autoload.php的第44行中无法打开所需的“SebastianBergmann/FinderFacade/autoload.php”(包含路径='.:/usr/share/php.;/usr/bin/pear.:/usr/share/php/SebastianBergmann/PHPLOC/') PHP堆栈跟踪: PHP 1. {main}() /usr/bin/phploc:0 PHP 2. require() /usr/bin/phploc:48
这是我的php包含路径。
$ php -i | grep include <br>
allow_url_include => Off => Off
include_path => .:/usr/share/php.:/usr/bin/pear.:/usr/share/php/SebastianBergmann/PHPLOC/ => .:/usr/share/php.:/usr/bin/pear.:/usr/share/php/SebastianBergmann/PHPLOC/
MYSQL_INCLUDE => -I/usr/include/mysql
xdebug.collect_includes => On => On
and included in the distribution in the file: LICENSE