安装Gitorious - rake gems:安装中止

时间:2011-03-28 05:12:45

标签: rake gitorious

按照installing Gitorious on RHEL

的说明操作

尝试运行rake gems时:安装我得到以下跟踪:

gitorious]$ sudo /opt/ruby-enterprise/bin/rake gems:install --trace
(in /var/www/html/gitorious)
rake aborted!
Bundler couldn't find some gems. Did you run `bundle install`?
/var/www/html/gitorious/config/../config/preinitializer.rb:18
/var/www/html/gitorious/config/boot.rb:28:in `load'
/var/www/html/gitorious/config/boot.rb:28:in `preinitialize'
/var/www/html/gitorious/config/boot.rb:10:in `boot!'
/var/www/html/gitorious/config/boot.rb:123
/opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/opt/ruby-enterprise/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/var/www/html/gitorious/Rakefile:4
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/opt/ruby-enterprise/bin/rake:19:in `load'
/opt/ruby-enterprise/bin/rake:19

我看到你需要将gitorious.yml配置指令放在'production:'下。不知道下一步该怎么做。我不是红宝石。

有什么建议吗?

1 个答案:

答案 0 :(得分:4)

萨姆 这里的问题似乎是RHEL指南已经过时了。 Gitorious已经开始使用Bundler来实现它的Ruby依赖,这实际上使事情变得更加简单。你应该做的是:

  • 安装bundler gem(gem install bundler)
  • 进入Gitorious root并运行bundle install

这应该修复所有Ruby依赖项。有关此更改的更多信息in the blog