I have installed ruby 1.9.3 using hombrew
brew install ruby
But default 1.8.7 is still used. How can I switch osx to use 1.9.3 as default ruby?
I have installed ruby 1.9.3 using hombrew
brew install ruby
But default 1.8.7 is still used. How can I switch osx to use 1.9.3 as default ruby?
I had similar situation. I installed ruby using Homebrew.
which -a ruby
gave me the following output:Which means that newly installed version should have been used, but
ruby --version
still returned the old system version.I quit terminal (Cmd+Q), and after restart
ruby --version
returned the correct version. So make sure you restart terminal after installing before trying any other (potentially unnecessary) fixes.