RVM 安装 [英] RVM Installation
问题描述
我正在尝试在 ubuntu 11.10 上安装 rvm.我已经通过 curl 使用以下命令安装了它.
I am trying to install rvm on ubuntu 11.10. I have installed it using following command through curl.
curl -L get.rvm.io |bash -s stable --auto-dotfiles
在终端上,它指定 rvm 已正确安装,并且我已检查 .rvm 目录已在我的主目录中正确创建,并且在 .rvm 目录中存在版本文件,但是当我在终端上写入 rvm -v 时,它会给出以下消息
On terminal it specifies that rvm has been installed properly and I have checked .rvm directory has been created properly in my home directory and in .rvm directory version file is present but when I write rvm -v on terminal it gives following msg
<代码>~$ rvm -v当前未安装程序rvm".您可以通过键入以下内容进行安装:sudo apt-get install ruby-rvm
请帮忙.
推荐答案
您是否将 PATH 添加到 .bashrc 文件中?
Did you add the PATH to your .bashrc file?
[[ -s "$HOME/.rvm/src/rvm/scripts/rvm" ]] && . "$HOME/.rvm/src/rvm/scripts/rvm"
添加后,重新加载:
source ~/.bashrc
这不是推荐的 RVM 方式,rvm 会做 shell 文件初始化,如果你需要强制运行这个过程 rvm get head --auto-dotfiles
this is not recommended way of RVM, rvm does shell file initialization, if you need force this process run rvm get head --auto-dotfiles
这篇关于RVM 安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!