Ruby on Rails:在 Ubuntu 9.0.4 中安装 gitorious 时出现问题

发布于 2024-07-25 12:37:13 字数 3390 浏览 8 评论 0原文

我似乎无法安装 Gitorious。 我试图不安装 Ruby Enterprise Edition,但除此之外,我一直遵循 Ubunut 的说明(存在一些错误,但我已经解决了这些错误)。 我已经安装了许多缺少的软件包和 gem,但是现在当我尝试迁移数据库时我陷入了困境。 我收到以下错误:

rake 中止!

undefined method `[]' for nil:NilClass

Trace 看起来像这样:

/var/www/gitorious/config/environments/production.rb:39:in `load_environment'
/var/www/gitorious/config/../vendor/rails/railties/lib/initializer.rb:386:in `load_environment'
/var/www/gitorious/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/var/www/gitorious/config/../vendor/rails/railties/lib/initializer.rb:379:in `load_environment'
/var/www/gitorious/config/../vendor/rails/railties/lib/initializer.rb:137:in `process'
/var/www/gitorious/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/var/www/gitorious/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/var/www/gitorious/config/environment.rb:13
/usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in `require'
/var/www/gitorious/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/var/www/gitorious/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/var/www/gitorious/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/var/www/gitorious/vendor/rails/railties/lib/tasks/misc.rake:4
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/var/lib/gems/1.8/gems/rake-0.8.7/bin/rake:31
/var/lib/gems/1.8/bin/rake:19:in `load'
/var/lib/gems/1.8/bin/rake:19

我的理解是我这是声称我缺少一些依赖项,但我已经检查了 /var/www/gitorious/config/environment.rb 中的依赖项已安装。

我还在 custom_require.rb 中放置了一个打印来打印路径变量,最后一个打印是“active_support/dependencies”。

有谁知道问题是什么或者我如何进一步调试这个问题? 我可以以某种方式打印确切缺少的依赖项吗? 是否可以在不安装整个 Ruby Enterprise 版本的情况下安装 gitorious?

I seem unable to install Gitorious. I am trying not to install Ruby Enterprise Edition, but apart from that I have been following the instructions for Ubunut (there were some errors but I have gotten around those). I have installed a number of missing packages and gems, but now I am stuck when I try to migrate the database. I get the following error:

rake aborted!

undefined method `[]' for nil:NilClass

Trace looks like this:

/var/www/gitorious/config/environments/production.rb:39:in `load_environment'
/var/www/gitorious/config/../vendor/rails/railties/lib/initializer.rb:386:in `load_environment'
/var/www/gitorious/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/var/www/gitorious/config/../vendor/rails/railties/lib/initializer.rb:379:in `load_environment'
/var/www/gitorious/config/../vendor/rails/railties/lib/initializer.rb:137:in `process'
/var/www/gitorious/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/var/www/gitorious/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/var/www/gitorious/config/environment.rb:13
/usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:32:in `require'
/var/www/gitorious/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/var/www/gitorious/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/var/www/gitorious/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/var/www/gitorious/vendor/rails/railties/lib/tasks/misc.rake:4
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/var/lib/gems/1.8/gems/rake-0.8.7/bin/rake:31
/var/lib/gems/1.8/bin/rake:19:in `load'
/var/lib/gems/1.8/bin/rake:19

My understanding is I this is claiming I'm missing some dependency, but I have checked that the dependencies in /var/www/gitorious/config/environment.rb have been installed.

I also put a print in custom_require.rb to print the path variable and the last print is "active_support/dependencies".

Does anyone have any idea what the problem is or how I could debug this further? Can I print the exact missing dependency somehow? Is it even possible to install gitorious without installing the entire Ruby Enterprise edition?

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

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

发布评论

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

评论(1

漫雪独思 2024-08-01 12:37:14

我从 Gitorious 讨论组询问了这个问题,原因是默认的 gitorious.yml 文件仅具有测试环境的设置。 通过将这些设置复制到生产环境,我解决了这个问题。

I asked about this from the Gitorious discussion group and the reason is the default gitorious.yml file only has settings for test environment. By copying those settings to the production environment, I got this problem fixed.

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