Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby errors with OS X Yosemite

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

like image 258
scientiffic Avatar asked Oct 21 '14 04:10

scientiffic


1 Answers

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

https://github.com/sstephenson/rbenv

like image 72
Radolino Avatar answered Oct 01 '22 00:10

Radolino