我正试图在我的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警告:
需要一次(sebastianbergmann/finderfacade/autoload.php):失败
开放流:在
/usr/share/php/sebastianbergmann/phploc/autoload.php第44行php
堆栈跟踪:php 1。{main}()/usr/bin/phploc:0php 2。需要()
/usr/bin/phploc:48 php致命错误:require_once():打开失败
需要'sebastianbergmann/finderfacade/autoload.php'
(包括路径='。/usr/share/php;/usr/bin/pear.:/usr/share/php/sebastianbergmann/phploc/')
在/usr/share/php/sebastianbergmann/phploc/autoload.php中,第44行php
堆栈跟踪:php 1。{main}()/usr/bin/phploc:0php 2。需要()
/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

最佳答案

请在以下位置尝试安装指南:
https://github.com/sebastianbergmann/phploc

关于php - phploc安装在ubuntu上不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/18481344/

10-11 10:49