Extension.pm中的Bugzilla-VCS安装错误

时间:2014-09-23 09:58:25

标签: perl svn integration bugzilla

在我的Windows Server 2008上安装用于SVN集成的bugzilla-vcs扩展时,我遇到了这个问题。经过大量搜索谷歌我终于用完了选项。有人可以协助我解决这个问题。我对perl完全不熟悉所以我不能做太多这个错误。错误日志如下......

Checking for                MySQL (v5.0.15)   ok: found v5.6.10-log

"my" variable $vcs_repos masks earlier declaration in same scope at ./extensions/VCS/Extension.pm line 180.
"state" variable @_ masks earlier declaration in same scope at ./extensions/VCS/Extension.pm line 196.
"my" variable $self masks earlier declaration in same scope at ./extensions/VCS/Extension.pm line 208.
"state" variable @_ masks earlier declaration in same scope at ./extensions/VCS/Extension.pm line 208.
syntax error at ./extensions/VCS/Extension.pm line 145, near "$type qw(Bzr Cvs Git Hg Svn)"
Global symbol "$type" requires explicit package name at ./extensions/VCS/Extension.pm line 147.
syntax error at ./extensions/VCS/Extension.pm line 172, near "}"
Can't use global @_ in "my" at ./extensions/VCS/Extension.pm line 179, near "= @_"
syntax error at ./extensions/VCS/Extension.pm line 189, near "}"
Can't use global @_ in "my" at ./extensions/VCS/Extension.pm line 196, near "= @_"
syntax error at ./extensions/VCS/Extension.pm line 201, near "}"
Can't use global @_ in "my" at ./extensions/VCS/Extension.pm line 208, near "= @_"
Global symbol "$args" requires explicit package name at ./extensions/VCS/Extension.pm line 209.
syntax error at ./extensions/VCS/Extension.pm line 211, near "}"
./extensions/VCS/Extension.pm has too many errors.
Compilation failed in require at Bugzilla/Extension.pm line 68.

1 个答案:

答案 0 :(得分:2)

它可以解决语法错误问题,在Ubuntu上进行一些非常小的代码编辑我希望它可以在Windows上运行,但我还没有尝试过。

在VCS / Extension.pm第145行

更改

  

预告我的$ typl qw(Bzr Cvs Git Hg Svn){

  

my @types = qw(Bzr Cvs Git Hg Svn);

     

预告我的$ type(@types){

和VCS / lib / Commit.pm第130行

  

foreach my $ key qw(revision revno author message uuid){

  

my @keys = qw(revision revno author message uuid);

     

foreach my $ key(@keys){