Gitorious Git 守护进程 Ruby Gem 错误

发布于 2024-12-01 12:51:21 字数 1477 浏览 2 评论 0原文

我正在我的网络服务器上安装 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。

我该如何解决它?

谢谢

I'm installing gitorious on my webserver. Everything works fine except git-deamon, I get the following error when I run it

/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

I have installed enterprise ruby 1.8.7 and ruby gems 1.4.2. I'm running ubuntu 11.04.

How could i solve it?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

绮筵 2024-12-08 12:51:21

简单的方法(但不是非常面向未来):

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

困难的方法:修改 /etc/init.d/git-daemon 以便它运行 cd /var/www/gitorious & &捆绑执行 /var/www/gitorious/script/git-daemon start

The easy way (but not very future-proof):

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

The hard way: modify /etc/init.d/git-daemon so that it runs cd /var/www/gitorious && bundle exec /var/www/gitorious/script/git-daemon start

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文