bash:/home/XXX/.rvm/scripts/rvm: 没有那个文件或目录 [英] bash: /home/XXX/.rvm/scripts/rvm: No such file or directory
问题描述
我刚刚使用 RVM 在 Ubuntu 上安装了 Ruby on Rails.
I just walk-through with the installation of Ruby on Rails on Ubuntu using RVM.
首先,我以 root 用户身份登录.
First I have logged in as the root user.
然后我开始使用以下命令.
Then I started with the following commands.
\curl -sSL https://get.rvm.io |bash -s 稳定 --rails
已安装,没有任何错误.
It has been installed without any error.
源代码 ~/.rvm/scripts/rvm
当我运行这个命令时.它显示错误为 bash:/home/XXX/.rvm/scripts/rvm: No such file or directory
When I run this command. It showing the error as bash: /home/XXX/.rvm/scripts/rvm: No such file or directory
我添加了 [[ -s "$HOME/.rvm/scripts/rvm";]] &&.$HOME/.rvm/scripts/rvm"
命令在我的 .bashr 文件中.
I added the [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
command in my .bashr file.
推荐答案
安装 RVM:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
现在您将收到一条成功消息.然后,运行此命令:
Now you will get a success message. Then, run this command:
\curl -sSL https://get.rvm.io | bash -s stable
有关详细信息,请参阅 http://rvm.io/.
See http://rvm.io/ for more info.
这篇关于bash:/home/XXX/.rvm/scripts/rvm: 没有那个文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!