小编use*_*749的帖子

我在Mac OS X上得到"RVM不是函数"错误,并且没有发布的解决方案

我在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 …

ruby rvm

16
推荐指数
2
解决办法
8302
查看次数

标签 统计

ruby ×1

rvm ×1