Rails 3.2 关于 JRuby gemspec 错误
当我尝试在 JRuby 1.6.5 上安装 Rails 3.2 rc 1 时,收到此 gemspec 错误:
Invalid gemspec in[/Users/robin/.rvm/gems/jruby-1.6.5/specifications/railties-3.2.0.rc1.gemspec]:
Illformed requirement ["#<YAML::Yecht::DefaultKey:0x469c3554> 3.2.0.rc1"]
所有核心 Rails gem 似乎都有此问题,有什么想法吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
事实上,查理和我已经找到了解决办法,现在已经解决了。 https://github.com/jruby/jruby/commit/71bcb3941dcfe0e0d0217921b06ec66a421f2288
修复版本将于明天早上在 http://ci.jruby.org/snapshots/
Actually, Charlie and I worked out a fix and it is now resolved. https://github.com/jruby/jruby/commit/71bcb3941dcfe0e0d0217921b06ec66a421f2288
The fixed version should be available tomorrow morning at http://ci.jruby.org/snapshots/
尝试在 1.9 模式下运行 JRuby。 Rails 的(可能还有其他的?)gemspec 文件没有被 yecht(旧的 syck 兼容的 YAML 引擎)正确解析。 psych(新的,在 1.9 模式下可用)应该可以很好地处理这个问题。由于 MRI 的 syck 似乎与 gemspec 有类似的问题,我怀疑 MRI 1.8 同样无法安装 Rails。
例如:
Try running JRuby in 1.9 mode. Rails' (and probably others?) gemspec file is not properly parsed by yecht(the old syck-compatible YAML engine). psych (the new one, available in 1.9 mode) should handle this fine. Since MRI's syck appears to have similar problem with the gemspec, I suspect MRI 1.8 similarly fails to install rails.
For example:
固定在红宝石头中;如果您使用的是rvm:
Fixed in jruby-head; if you're using rvm: