Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从shell脚本以多用户身份安装RVM_Shell_Rvm - Fatal编程技术网

从shell脚本以多用户身份安装RVM

从shell脚本以多用户身份安装RVM,shell,rvm,Shell,Rvm,我正在尝试从shell脚本以多用户身份安装RVM,在shell脚本中有以下内容: OS: Ubuntu 14.04 当我运行脚本时,我得到以下结果: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 sudo curl -L https://get.rvm.io | bash -s stable 当我去看的时候: Installing RVM to /ho

我正在尝试从shell脚本以多用户身份安装RVM,在shell脚本中有以下内容:

OS: Ubuntu 14.04
当我运行脚本时,我得到以下结果:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
sudo curl -L https://get.rvm.io | bash -s stable    
当我去看的时候:

Installing RVM to /home/ubuntu/.rvm/

关于stackoverflow的建议是将其安装为sudo,但这不起作用。有什么想法吗

您的
sudo
命令错误

你需要它在
bash
的一半上,而不是
curl
的一半上

您想要的是
sudo
-ed shell,而不是
sudo
-ed下载

    Installing RVM to /usr/local/rvm
curl -L https://get.rvm.io | sudo bash -s stable