Alternative way to install ruby, by RVM,( highly recommended):
1 2 3 4 5
| bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile source ~/.bash_profile rvm install 1.9.2 rvm use 1.9.2 --default
|
参考:https://blog.csdn.net/JimyJimang/article/details/7195388