Ubuntu15.04 install RVM,

Source: Internet
Author: User

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,

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.