Rbenv and Rails installation under Linux

Source: Internet
Author: User

Today is Monday, I went to the new company on the 14th day, today continue Linux under the configuration of the Ruby and rails environment variables.

The first problem is

Mainly see ubuntu under Install rbenv,Ruby,rails development environment,

  http://blog.chinaunix.net/uid-7915607-id-3961698.htm L  

Reference rbenv+ruby-build managing Ruby

http://segmentfault.com/a/1190000000366488

The problem that follows is focused on the following 3 questions:

Could not find gems ' rails (= 4.0.2) Ruby ' in the gems available on this machine.

Run ' bundle install ' to install missing gems.

Gem::remotefetcher::fetcherror:errno::econnreset:connection Reset by Peer-ssl_connect (https://rubygems.org/gems/ Rake-10.4.2.gem)

An error occurred while installing rake (10.4.2), and bundler cannot continue.

Make sure that ' gem install rake-v ' 10.4.2 ' succeeds before bundling.

The main reason for these problems is the domestic network reasons, the need to change the source of RubyGems to a domestic source. There is a more detailed explanation in this article. RubyGems Mirror https://rubyt.aobao.org

After you have configured your own development environment, you can try to develop your own test program. Here rails is the official guide for Good Rails primer https://guides.ruby-china.org/getting_started.html, English good can be straight

The guide http://guides.rubyonrails.org/to the English language.

Today's problem is basically solved these, I hope we grow together.

Rbenv and Rails installation under Linux

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.