简体   繁体   中英

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!

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.

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 vi have is 1.8.7 (mac)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM