它默认为Mac OS x附带的1.8.7.我试图使用RVM并使用1.9.3我试过rvm使用默认值并且说-bash:rvm:command not found
我的bashrc文件有
PATH=$PATH:$HOME/.rvm/bin
Run Code Online (Sandbox Code Playgroud)
Kev*_*ell 18
键入rvm list将为您提供已安装的红宝石列表,如下所示:
ree-1.8.7-2010.02 [ i686 ]
ruby-1.8.7-p249 [ i686 ]
ruby-1.9.2-p180 [ x86_64 ]
ruby-1.9.2-p180-patched [ x86_64 ]
ruby-1.9.2-p290 [ x86_64 ]
ruby-1.9.2-p290-webkit [ x86_64 ]
=* ruby-1.9.3-p194 [ x86_64 ]
Run Code Online (Sandbox Code Playgroud)
如果你想要的是ruby-1.9.3-p194,那么输入:
rvm --default use ruby-1.9.3-p194
Run Code Online (Sandbox Code Playgroud)
首先,请小心遵循安装说明并确保其正常工作.
你也应该在你的bashrc中看到这一行:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Run Code Online (Sandbox Code Playgroud)
然后尝试打开一个新shell或尝试输入:
source ~/.rvm/scripts/rvm
Run Code Online (Sandbox Code Playgroud)
但总的来说,如果你遇到问题,我建议你重新安装rvm - 它不需要很长时间,而且很简单:
curl -L get.rvm.io | bash -s stable
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6986 次 |
| 最近记录: |