I can do a user installation of RVM on Ubuntu 12.04 using the following command:
$ \curl -L https://get.rvm.io | bash -s stable --ruby
And it works.
However, I would like to do a system-wide install of RVM so it will be installed in /usr/local/rvm. But when I add sudo, the installation just hangs, like so:
$ \curl -L https://get.rvm.io | sudo bash -s stable --ruby
[sudo] password for guarddoggps: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 475 0 --:--:-- --:--:-- --:--:-- 828
100 20511 100 20511 0 0 30262 0 --:--:-- --:--:-- --:--:-- 30262
So how can I get a system-wide install on Ubuntu 12.04?
If I understand your question, you can either do the entire command as root
with
sudo -i
curl -L https://get.rvm.io | bash -s stable --ruby
Or, break the command into two commands -
curl -L https://get.rvm.io > install.rb
sudo bash -s stable --ruby < install.rb
rm install.rb
Per the documentation :
For a Multi-User install you would execute the following:
user$ \curl -sSL https://get.rvm.io | sudo bash -s stable
There are instructions for using RVM all over the internet, but the only real, truly accurate, source is the RVM site itself. RVM is a fast-moving target and the internet is a vast heap of stale information, so trust the authors for information on how to install it or use it before you trust others.
It's really important to read the entire Installation page.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.