readmymsg123
readmymsg123

Reputation: 643

Ruby Installation on Mac OSX fails - please help!

I am extremely frustrated with ruby on Mac OS X. I have tried RVM and regular installations of ruby, and nothing seems to get it to work well. With RVM, rails throws errors at me, and with a regular installation of ruby 1.9.2-p180, somehow my computer reverts back to ruby 1.8.7 over time. Can someone please help? A detailed instruction on how to just reset my ruby installation from a clean slate would be very helpful.

Thanks so much in advance!

Upvotes: 0

Views: 369

Answers (2)

ghoppe
ghoppe

Reputation: 21784

rvm --default use 1.9.2

This has been covered multiple times here. A simple search will find many questions.

See: Installing RVM (Ruby Version Manager)

and

i installed ruby 1.9.2 with RVM, but when i type "ruby -v" is telling me the ruby v i have is 1.8.7 (mac)

Upvotes: 0

clt60
clt60

Reputation: 63892

I'm using macports for all my needs:

  1. go to www.macports.org
  2. download installation dmg
  3. install it
  4. open a new Terminal windows (or source ~/.profile )
  5. port selfupdate
  6. port search ruby
  7. pick what one want (ruby for 1.8.7, or ruby19 for 1.9.2)
  8. sudo port install ruby
  9. port search rb-
  10. pick what want and install

everything will install into /opt - so does not interfere with your standard system binaries.

Note, than everything will compile - and take a long time.

Upvotes: 1

Related Questions