RVM official website
https://rvm.io/
1 Since many sites are now turning to HTTPS links, so according to RVM's official tutorial
Alternatively, it is best to install it as a single user, which is to install to a non-root user directory.
1.1 Set HTTPS authentication, if you follow the previous tutorial is not this one, but now need, otherwise it will be an error.
Copy Code code as follows:
GPG--keyserver hkp://keys.gnupg.net--recv-keys 409b6b1796c275462a1703113804bb82d39dc0e3
PS: Non-root users may need to use sudo installation, well, anyway, this is what I am.
1.2 is coming, the following sentence means the installation of RVM.
Curl-ssl Https://get.rvm.io | Bash-s Stable
The former is:
Curl-s Get.rvm.io | Bash-s Stable
Global RVM:
Curl-ssl Https://get.rvm.io | sudo bash-s stable
Download can also use this method I haven't tried it.
Ps:root users to install the default/USE/LOCAL/RVM directory, non-root users installed in the user directory. It is best not to install the global RVM.
PS: I started when the bar RVM installed to root, but also want to not install Ruby under the root, oh, this is interesting, TMD always prompted insufficient permissions can not create a/USR/LOCAL/RVM directory, well, this is normal, not root permissions can not be the system directory to create files , and then I thought that since it would be a problem to create it separately, I would just install RVM into the user directory, but when I use it under root
RVM implode Command Uninstall RVM ready to install in the user directory, the TMD or prompted not to create the/USR/LOCAL/RVM directory, it is strange to show the specified installation path. It was later found that there was an advanced setting of the default address. All right, hell, no root user logged in, but anyway to install into the system directory, OK, restart. After reboot, OK.
Well, now I just want to say---grass--------
PS: In fact, many commands to see the command Help (RVM--help) will know,
Another: Remember a new system installation configuration RVM
1, install Git,curl,bison (Aptitude Direct installation)
2, run
$ bash < < (Curl Http://rvm.beginrescueend.com/releases/rvm-install-head)
3,
Copy Code code as follows:
$ mkdir-p ~/.rvm/src/&& cd ~/.rvm/src && rm-rf./rvm/&& git clone--depth 1 git://github.com/w Ayneeseguin/rvm.git && CD RVM &&/install
Download, install
4, because I'm using Ubuntu 10.10 so, in
$ VI ~/.BASHRC
Add the following information to the file.
[[s] $HOME/.RVM/SCRIPTS/RVM]] &&. "$HOME/.RVM/SCRIPTS/RVM" # This loads RVM to a shell session.
5, close the command line, reopen one, enter Type RVM | Head-1
If the result is correct, it will show
Basic installation complete.
Finally add path:
$ source ~/.RVM/SCRIPTS/RVM
6, but then when you run RVM install 1.9.2-head, you get an error:
ruby-1.9.2-head-#fetching
downloading source from http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_2.
Error running ' svn checkout-q http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_2/home/allen/.rvm/repos/ Ruby-1.9.2-head ', please read/home/allen/.rvm/log/ruby-1.9.2-head/svn.checkout.log
There has been a error while Trying to fetch/update the source.
Halting the installation.
It turns out I didn't pretend to be svn .... It's a very embarrassing ....