Ubuntu15.04 install RVM,
First, please refer to this article
Https://ruby-china.org/wiki/rvm-guide
Official website of RVM
Https://rvm.io/
1. Because many websites now turn to https links, according to the official rvm tutorial
In addition, it is best to install it in the form of a single user, that is, to install it in a non-ROOT user directory.
1.1 set https verification. If this part is not provided according to the previous tutorial, but it is required now. Otherwise, an error will be reported.
Gpg -- keyserver hkp: // keys.gnupg.net -- recv-keys 409b6b1796c275462a1703111084bb82d39dc0e3
PS: Non-root users may need to use sudo for installation. Well, that's all about me.
1.2 is playing. The following sentence indicates installing rvm.
Curl-sSL https://get.rvm.io | bash-s stable
Previously:
Curl-s get. rvm. io | bash-s stable
Global RVM:
Curl-sSL https://get.rvm.io | sudo bash-s stable
If the download method is still available, I will not try it.
Ps: by default, the ROOT user is installed in the/use/local/rvm directory, and non-ROOT users are installed in the user directory. We recommend that you do not install the global RVM.
Ps: When I started, RVM was installed to the root, and I wanted to install ruby without the ROOT. Oh, that's interesting, TMD always prompts that the/usr/local/rvm directory cannot be created due to insufficient permissions. Well, this is normal, and files cannot be created in the system directory without root permissions, then I thought that, since there will be problems in separate creation, I would not be able to install RVM in the user directory. However, when I use RVM in the ROOT directory
When the rvm implode command uninstalls rvm and is ready to be installed in the user directory, TMD still prompts that the/usr/local/rvm directory cannot be created. Strange, do you still need to display the specified installation path. Later I found that there is a default address, which is an advanced setting. Well, it's a ghost. The non-ROOT user is clearly used to log on, but it will be installed in the system directory. Okay, restart. After restart, OK.
Well, now I just want to say ------- grass --------
PS: in fact, you can see the help of many commands (rvm -- help,