在 DreamHost 上安装 Radiant
我正在尝试在 DreamHost 上安装 Radiant,当我执行此操作时:
radiant mysitename
它开始安装,然后出现此错误
/vendor/rails/activesupport/lib/active_support/dependency.rb:55: 未初始化常量 ActiveSupport::依赖项::互斥体 (名称错误)
现在我认为可能是 DreamHost 让我使用 Rails 3,是这样吗?如果是这样,我如何运行旧版本?我很困惑 - 谢谢。
安装
- ruby 1.8.7 (2008-08-11 补丁级别 72) [x86_64-linux]
- Rails 3.0.7
- Gem 1.8.2
- Radiant 0.9.1
I am attempting to install Radiant on DreamHost, and when I get to the point where I do this:
radiant mysitename
It starts to install, then I get this error
/vendor/rails/activesupport/lib/active_support/dependencies.rb:55:
uninitialized constant
ActiveSupport::Dependencies::Mutex
(NameError)
Now one thing I think it might be is that DreamHost has me using Rails 3, is that the case? If so, how can I run an older version? I am stumped - thanks.
Setup:
- ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
- Rails 3.0.7
- Gem 1.8.2
- Radiant 0.9.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
此错误是由 RubyGems > 的组合引起的1.6.0 和 Rails < 2.3.11
您可以通过降级到 rubygems 版本 1.5.3 来解决此问题
This error is caused by the combination of RubyGems > 1.6.0 and Rails < 2.3.11
You could fix this by downgrading to rubygems version 1.5.3
答案是即将发布的 Radiant 1.0
本质上:Rubygems 的最新版本引入了一项更改,改变了 Rails 所依赖的一些东西。这个问题在 Rails 的一个单点版本(比如 2.3.9)中得到了修复,但 Radiant 0.9 是基于之前的 Rails 版本。
有多种方法可以修补您的 Rails/Radiant 应用程序以获取它查看我在 Github 上的拉取请求为此...有时会起作用(过去几天我发现了它的问题。
但是我知道 Radiant 核心团队今天想要发布新版本的 Radiant (可能18)或第二天,这将升级到最新的 Rails 2.3 版本,从而解决问题。
The answer is the soon to be released Radiant 1.0
Essentially: a recent version of Rubygems introduced a change that changed some things Rails depended on. This was fixed in a point release of Rails (say 2.3.9), but Radiant 0.9 was based on a version of Rails before that.
There are ways to patch your Rails/Radiant apps to get it see my pull request on Github for this... which sometimes works (I've found issues with it over the last few days.
However I know that the Radiant core team wants to release a new version of Radiant today (May 18) or the next day. This will upgrade to the latest Rails 2.3 release, which solves the problem
如果您转到此 wiki 它展示了如何安装旧版本的 Rails。在该部分的前面,它还提到检查 Gem 的版本号与您列出的版本号不同。
If you go to step 7 under Install RubyGems in this wiki it shows how to install an older version of Rails. Earlier in that section it also mentions checking for a different version number for Gem than the one you have listed.
您是否尝试过以下操作方法:https://github.com/radiant /radiant/wiki/使用 SSH 在 Dreamhost 上安装
Have you tried this HOWTO: https://github.com/radiant/radiant/wiki/Installing-on-Dreamhost-Using-SSH