drasv0904
2013-08-28 07:03
浏览 66
已采纳

phploc安装不适用于ubuntu

I am trying to install phploc on my ubuntu 13.04 and it doesn't seem to work here are the steps I followed.

$ 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

Then when i type phploc it givies this error

$ phploc
PHP Warning: require_once(SebastianBergmann/FinderFacade/autoload.php): failed to open stream: No such file or directory in /usr/share/php/SebastianBergmann/PHPLOC/autoload.php on line 44 PHP Stack trace: PHP 1. {main}() /usr/bin/phploc:0 PHP 2. require() /usr/bin/phploc:48 PHP Fatal error: require_once(): Failed opening required 'SebastianBergmann/FinderFacade/autoload.php' (include_path='.:/usr/share/php.;/usr/bin/pear.:/usr/share/php/SebastianBergmann/PHPLOC/') in /usr/share/php/SebastianBergmann/PHPLOC/autoload.php on line 44 PHP Stack trace: PHP 1. {main}() /usr/bin/phploc:0 PHP 2. require() /usr/bin/phploc:48

Here is my php include path

$ 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

图片转代码服务由CSDN问答提供 功能建议

我正在尝试在我的ubuntu 13.04上安装phploc,这似乎不起作用我遵循的步骤 。

  $ sudo pear config-set auto_discover 1 
 $ sudo pear install phpunit / phploc 
phpunit / phploc可以选择使用PHP扩展“bytekit”
downloading phploc-1.7。  4.tgz ... 
开始下载phploc-1.7.4.tgz(10,134字节)..... 
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):未能打开流:第44行PHP中的 /usr/share/php/SebastianBergmann/PHPLOC/autoload.php中没有此类文件或目录 堆栈跟踪:PHP 1. {main}()/ usr / bin / phploc:0 PHP 2. require() / usr / bin / phploc:48 PHP致命错误:require_once():打开失败 必需 'SebastianBergmann / FinderFacade / autoload.php' (i nclude_path ='。:/ 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:0 PHP 2. require() / usr / bin / phploc:48

这是我的php include路径

  $ php -i |  grep include&lt; br&gt; 
allow_url_include =&gt;  Off =&gt; 关
include_path =&gt;  。:/ usr / share / php。:/ usr / bin / pear。:/ usr / share / php / SebastianBergmann / PHPLOC / =&gt;  。:/ usr / share / php。:/ usr / bin / pear。:/ usr / share / php / SebastianBergmann / PHPLOC / 
MYSQL_INCLUDE =&gt;  -I / usr / include / mysql 
xdebug.collect_includes =&gt;  On =&gt; 在
并包含在文件中的分发中:LICENSE 
   
 
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

  • douyanzan9145 2013-09-29 14:38
    最佳回答

    Try the installation guide at: https://github.com/sebastianbergmann/phploc

    评论
    解决 无用
    打赏 举报
查看更多回答(1条)