RVM is great for setting up multiple environments with different versions of Ruby and gems.
If you, however, want to have Ruby 1.9, you can simply install it using MacPort. It will take precedence over the already installed default in OS X.
- Download MacPort if you havenβt already. This is the Mac package manager.
- In terminal use MacPort to install Ruby 1.9 and RubyGems
sudo port selfupdate
sudo port install ruby19
sudo port install rb-rubygems
You should have Ruby 1.9 installed and ahead of the way. Do ruby -v to check. Use Ruby gems to install any other Ruby components, such as Rails.
Ports are installed in the / opt / local / bin directory, and MacPort updates the PATH environment variable so that it is matched before the pre-installed / usr / bin packages.
Alkaline
source share