The Computer Oracle

Ruby installation issues with RVM

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping

--

Chapters
00:00 Ruby Installation Issues With Rvm
00:30 Accepted Answer Score 31
01:02 Answer 2 Score 11
01:11 Thank you

--

Full question
https://superuser.com/questions/820364/r...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #osxmavericks #ruby #rvm #osxyosemite

#avk47



ACCEPTED ANSWER

Score 31


I had the exact same problem when setting up RVM on my new Mac this morning:

$ ruby -v
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
Referenced from: /Users/psoshnin/.rvm/rubies/ruby-2.1.3/bin/ruby
Reason: image not found

To solve the issue I first ran:

$ brew update && brew upgrade

Then I ran:

$ rvm reinstall 2.1.3 --disable-binary

And it installed successfully for me.

$ ruby -v
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin13.0]

Hope this helps.




ANSWER 2

Score 11


This worked for me:

brew update && brew install gmp && rvm reinstall 2.1.3