[英]trouble with installing rvm in ubuntu
I just installed rvm in my machine using the following command 我刚刚使用以下命令在我的机器上安装了rvm
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
and got this in my terminal 并在我的终端得到这个
Installation of RVM to /home/rahul/.rvm/ is complete.
When I go to /home/rahul/.rvm/
, I am able to see all the necessary folders but when I give rvm command in the terminal, I get this error 当我去/home/rahul/.rvm/
,我能够看到所有必要的文件夹但是当我在终端中给出rvm命令时,我收到此错误
rvm --version
No command 'rvm' found, but there are 19 similar ones
rvm: command not found
How can I fix it? 我该如何解决?
EDIT 编辑
I have also added the following lines in my bashrc 我还在我的bashrc中添加了以下行
if [[ -n "$PS1" ]]; then
if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi
fi
actually after installation of rvm , you have to run the script. 实际上在安装rvm之后,你必须运行脚本。 i was stuck in the same level as you are, than in terminal i read this line: 我被困在与你相同的水平,而不是终端我读到这一行:
" To start using RVM you need to run source /usr/local/rvm/scripts/rvm
" “要开始使用RVM,您需要运行source /usr/local/rvm/scripts/rvm
”
so place this command ( source /usr/local/rvm/scripts/rvm
) in terminal and enter 所以将此命令( source /usr/local/rvm/scripts/rvm
)放入终端并输入
and after that : 在那之后 :
type rvm | head -1
rvm is a function (this you will see hopefully)
Did you reload your shell or open a new terminal window? 你重装了shell还是打开了一个新的终端窗口?
Did you follow the diagnostics on the RVM install page , in particular the section "Troubleshooting Your Install", checking to see if RVM is known as a function? 您是否按照RVM安装页面上的诊断信息,特别是“安装故障排除”部分,检查RVM是否被称为功能? You should see something like this: 你应该看到这样的东西:
user$ type rvm | head -1
rvm is a function
你应该在~/.bashrc
添加[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
,然后重启终端。
Open terminal go to Edit
> Profile Preferences
click on Title and Command
tab and check Run command as login shell
. 打开终端转到Edit
> Profile Preferences
单击Title and Command
选项卡,然后选中Run command as login shell
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.