rvm
use
2.2
.2
--
default 可能报错:
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for an example.
解决办法:参考:http://www.cnblogs.com/fantiantian/p/3392357.html
然后执行如下命令:
1 /bin/bash --login
解决此问题。