我在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 ~/.rvm/scripts/rvm,运行时没有返回错误,但当我尝试使用RVM在终端会话中设置Ruby版本时,我仍然得到"RVM不是函数"错误.
我还尝试使用卸载和重新安装RVM rvm implode.我的想法已经用完了,我似乎无法在网上找到更多的解决方案.救命?
mpa*_*pis 27
确保正确设置了shell初始化文件:
rvm get head --auto-dotfiles
Run Code Online (Sandbox Code Playgroud)
然后转到终端模拟器首选项并启用登录shell,有时它需要使用/bin/bash --login.同时确保完全关闭终端并在更改设置后将其打开.
| 归档时间: |
|
| 查看次数: |
8302 次 |
| 最近记录: |