OS X Yosemite 的 Ruby 错误 [英] Ruby errors with OS X Yosemite
问题描述
我刚刚升级到 OS X Yosemite,并且在运行我的 Rails 应用程序时遇到了各种问题.我经常看到以下错误:
I just upgraded to OS X Yosemite and am running into all sorts of issues running my Rails app. I'm constantly seeing the following error:
ruby(11958,0x7fff7e430300) malloc: *** error for object 0x7f880b801808: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
任何想法如何解决这个问题?
Any ideas how to fix this?
编辑
我尝试遵循此页面上的建议:
I tried following the suggestions on this page:
但是当我编辑 brew.rb 以将路径更改为当前"时,出现错误:
But when I edit brew.rb to change the path to "Current," I get the error:
Homebrew requires Leopard or higher. For Tiger support, see:
https://github.com/mistydemeo/tigerbrew
解决方案
我完全删除了 rvm 并从头开始重新安装.为了删除rvm,我首先要运行
I completely removed rvm and reinstalled from scratch. In order to remove rvm, I first had to run
rvm fix-permissions
然后
rvm implode
然后我按照此页面上的说明进行操作:
I then followed the directions on this page:
https://gorails.com/setup/osx/10.10-yosemite
推荐答案
rbenv 也很不错.自从我第一次使用 ruby/rails 以来,我就一直在使用它,没有出现任何错误.
rbenv is pretty good too. I've been using it since my first ruby/rails days without an error.
https://github.com/sstephenson/rbenv
这篇关于OS X Yosemite 的 Ruby 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!