Search code examples
rubyxcodeosx-mountain-lionxcode4.5ruby-1.9.3

Unable to install ruby 1.9.3 through Xcode 4.5.1 on Mountain Lion


I'm running Mac OS 10.8.2 and Xcode 4.5.1. I installed the command line tools through Xcode which from what I've read is supposed to install ruby 1.9.3. However, when I run ruby -v in terminal it still shows up as 1.9.2. Is there something I'm missing here? Thanks in advance


Solution

  • The cleanest way to install ruby-1.9.3 would be using rvm or rbenv. Also, in OS X, i would recommend homebrew for custom packages.

    You can follow the instructions on http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/