gpt4 book ai didi

ruby-on-rails - Gitorious Git-daemon Ruby Gem 错误

转载 作者:太空宇宙 更新时间:2023-11-03 16:09:15 27 4
gpt4 key购买 nike

我正在我的网络服务器上安装 gitorious。除 git-deamon 外,一切正常,运行时出现以下错误

/etc/init.d/git-daemon start
Starting git-daemon: /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:31:in `setup':
You have already activated daemons 1.1.4, but your Gemfile requires daemons 1.1.0.
Consider using bundle exec. (Gem::LoadError)
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:17:in `setup'
from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler.rb:107:in `setup'
from /var/www/gitorious/script/../config/../config/preinitializer.rb:16
from /var/www/gitorious/script/../config/boot.rb:28:in `load'
from /var/www/gitorious/script/../config/boot.rb:28:in `preinitialize'
from /var/www/gitorious/script/../config/boot.rb:10:in `boot!'
from /var/www/gitorious/script/../config/boot.rb:123
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /var/www/gitorious/script/../config/environment.rb:11
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /var/www/gitorious/script/git-daemon:11

failure

我已经安装了 enterprise ruby​​ 1.8.7 和 ruby​​ gems 1.4.2。我正在运行 ubuntu 11.04。

我该如何解决?

谢谢

最佳答案

简单的方法(但不是很适合 future ):

gem uninstall daemons
cd /var/www/gitorious
bundle install

困难的方法:修改 /etc/init.d/git-daemon 让它运行 cd/var/www/gitorious && bundle exec/var/www/gitorious/script/git-daemon 启动

关于ruby-on-rails - Gitorious Git-daemon Ruby Gem 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7201687/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com