Ruby errors with OS X Yosemite

只谈情不闲聊 提交于 2019-11-30 15:08:01

问题


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?

Edit

I tried following the suggestions on this page:

How to get Ruby / Homebrew / RVM to work on Yosemite?

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

Solution

I completely removed rvm and reinstalled from scratch. In order to remove rvm, I first had to run

rvm fix-permissions

then

rvm implode

I then followed the directions on this page:

https://gorails.com/setup/osx/10.10-yosemite


回答1:


rbenv is pretty good too. I've been using it since my first ruby/rails days without an error.

https://github.com/sstephenson/rbenv



来源:https://stackoverflow.com/questions/26478906/ruby-errors-with-os-x-yosemite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!