2014-09-23 89 views
2

在我的windows server 2008上安裝SVN集成的bugzilla-vcs擴展時,遇到了這個問題。在谷歌搜索後,我終於用盡了選項。有人能幫助我解決這個問題嗎?我完全不熟悉perl,所以我不能做這個錯誤。錯誤日誌如下...Extension.pm中的Bugzilla-VCS安裝錯誤

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. 
+2

此bug已被報道在谷歌代碼回購:https://code.google.com/p/bugzilla-vcs/issues/detail? id = 29。沒有什麼可以做,除非你想開始黑客代碼並自己修復錯誤! – 2014-09-23 10:08:37

+0

是的,我看到了這個bug,並且也是這個bug的主角。似乎這個擴展bugzilla沒有太多的事情發生。最後一個版本是在2010年10月完成的。我迫切需要一個將Bugzilla與我們的SVN安裝集成的解決方案,以跟蹤對錯誤的提交。我很驚訝這是多麼困難。 – Vishal 2014-09-24 05:39:53

+0

推測你已經看到了[Bugzilla SCM集成列表](https://wiki.mozilla.org/Bugzilla:Addons#Integration_with_Source_Code_Management_programs)? – 2014-09-24 16:54:09

回答

2

它能夠用幾個非常小的代碼編輯在Ubuntu我期望的一樣將工作在Windows上解決語法錯誤問題,但我還沒有嘗試過。

在VCS/Extension.pm線

變化

我的foreach $ typl QW(BZR CVS混帳汞柱SVN){

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

我的foreach $類型(@types){

和VCS/lib目錄/ Commit.pm線130

我的foreach $關鍵QW(修訂revno筆者消息UUID){

我@keys = QW(修訂revno筆者米essage uuid);

我的foreach $鍵(@keys){