我在Mac OS x 10.8.2("Mountain Lion")上,我成功安装了RVM 1.17.8及其依赖项.我可以用它来安装Ruby版本rvm install 1.9.2,但是如果rvm use <version>没有出现这个错误我就无法执行:
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 a example.
Run Code Online (Sandbox Code Playgroud)
source ~/.bash_profile每当启动终端窗口时,我都会在〜/ .bash_profile中使用以下内容:
export SVN_EDITOR=vim
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[ -r ~/.bashrc ] && source ~/.bashrc
Run Code Online (Sandbox Code Playgroud)
我试过运行source …