How can I switch to ruby 1.9.3 installed using Homebrew?
问题 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? 回答1: I suggest you take a look at rvm. You can then set it as default with rvm use 1.9.3 --default But if you are happy with your homebrew install. Then just change the precedence of directories in the PATH Here is my /etc/paths # homebrews should always take precedence /usr/local/bin # the default stack /usr/bin /bin /usr/sbin /sbin This is important