安装Redmine后,gitlab推送失败

时间:2013-10-08 15:55:36

标签: redmine gitlab

我在我的服务器(Debian Squeeze x64)上安装了gitlab(5.2)很长一段时间,但它运行良好,但在我在同一台服务器上安装Redmine(2.3.3)之后,我无法将我的git副本推送到服务器:

Git客户端控制台显示:

remote: /home/git/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/dsl.rb:33:in `eval_gemfile': Gemfile syntax error: (Bundler::GemfileError)
remote: /home/git/gitlab/Gemfile:29: syntax error, unexpected ':', expecting $end
remote: gem 'gitlab-grack', '~> 1.0.0', require: 'grack'
remote:                                         ^
remote:         from /home/git/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/dsl.rb:9:in `evaluate'
remote:         from /home/git/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/definition.rb:19:in `build'
remote:         from /home/git/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler.rb:148:in `definition'
remote:         from /home/git/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler.rb:116:in `setup'
remote:         from /home/git/.rvm/gems/ruby-1.9.3-p429/gems/bundler-1.3.5/lib/bundler/setup.rb:17
remote: error: hook declined to update refs/heads/master

我在http://www.netnerdz.se/2013/01/installing-redmine-2-1-x-2-2-x-with-ruby-1-9-3-under-debian-squeeze/

之后安装了Redmine

我对Ruby和Gems一无所知,所以如果有任何人可以提供帮助的话。

1 个答案:

答案 0 :(得分:1)

这是ruby1.8问题,我忘了在安装redmine时从debian存储库安装了ruby1.8。我运行“apt-get purge ruby​​1.8”后工作正常。抱歉打扰。