安装rvm“bash/root/.rvm/scripts/rvm没有那个文件或目录"; [英] install rvm "bash /root/.rvm/scripts/rvm No such file or directory"
本文介绍了安装rvm“bash/root/.rvm/scripts/rvm没有那个文件或目录";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在 ubuntu 中安装 RVM,我正在按照以下步骤操作
I want to install RVM in ubuntu and I am following these steps
root@jaskaran-Vostro-1550:/home/user_name# sudo apt-get install curl
成功完成
root@jaskaran-Vostro-1550:/home/user_name# curl -L https://get.rvm.io | bash -s stable
成功完成
但是当我运行这个命令时
but when I run this command
root@jaskaran-Vostro-1550:/home/user_name# source ~/.rvm/scripts/rvm
这样的结果
bash: /root/.rvm/scripts/rvm: No such file or directory
这有什么问题吗?
推荐答案
我今天在远程服务器上安装 RVM 时遇到了同样的问题.似乎默认情况下没有执行安装.这就是我为解决它所做的:
I was installing RVM on a remote server today and had the same issue. It seems that the installation was not executed by default. This is what I did to solve it:
curl -L https://get.rvm.io | bash -s stable
# In case rvm not found
cd ~/.rvm/archives
tar xvzf rvm-1.26.0.tgz # or whatever RVM version you have
cd mpapis-rvm-xxxxxxx
./install
cd ..
rm -Rf mpapis-rvm-xxxxxxxx
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
这篇关于安装rvm“bash/root/.rvm/scripts/rvm没有那个文件或目录";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文