运行“捆绑安装”时出错使用 Ruby 1.9.3
我正在阅读第二版 Ruby on Rails 教程 (http://ruby.railstutorial.org/)。我正在遵循每个步骤,因此我使用 Ruby 1.9.3,当我在 Rails 项目中运行“bundle install”时,出现一个错误,其中包含大量错误,该错误以此开头:
/Users/sebasoga/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/http.rb:799:[BUG] 分段错误 ruby 1.9.3p125 (2012-02 -16 修订版 34643) [x86_64-darwin10.8.0]
我现在使用 Ruby 1.9.2 并且它工作得很好,但是它不应该也适用于 Ruby 1.9.3 吗?
I'm going through the second edition of Ruby on Rails Tutorial (http://ruby.railstutorial.org/). I'm following each step, so I'm using Ruby 1.9.3 and when I run 'bundle install' inside my Rails project I an error with a big trace of the error which starts with this:
/Users/sebasoga/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]
I'm now using Ruby 1.9.2 and it works fine, but shouldn't it also work with Ruby 1.9.3?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这个对我有用:
它基于此博客的解决方案。我还尝试了此处,是基于macports的,但没有用。但说实话,我不在乎更新我的 MacPorts,所以也许这就是它不起作用的原因。
我还发现另外两个问题描述了问题并给出了建议:4050、4766
This one worked for me:
It's based in the solution on this blog. I also tried the one here, which is based on macports and it didn't work. But to be honest I didn't care updating my macports, so maybe that's why it didn't work.
Also I found these other two issues describing the problem and giving suggestions: 4050, 4766
在我的 Gemfile 中,
将此行替换为
解决了问题。希望这有帮助!
In my Gemfile, replacing
this line with
solved the problem. Hope this helps!
如果您正在运行 1.9.3 和 xcode 4.2 中的软件包,似乎存在问题?
在 SO 上的某个地方发现回到 4.1 是一个修复。我保留了1.9.2
Seems like there's an issue with a package in 1.9.3 and xcode 4.2 if you're running that?
Spotted somewhere on SO that going back to 4.1 is a fix. I stayed with 1.9.2