Installing the ruby Rails environment

Source: Internet
Author: User
Tags install homebrew

Steps 1

Install homebrew, install the package required for the system through it

Ruby-e "$ (curl-fssl https://raw.github.com/mxcl/homebrew/go/install)"

After the installation is complete, brew doctor self-Test

Steps 2

Installing Curl-l Https://get.rvm.io | Bash-s Stable

SOURCE ~/.RVM/SCRIPTS/RVM

$ rvm-v

RVM 1.26.4 (Master) by Wayne E. Seguin <[email Protected]>, Michal Papis <[email protected]> [https://rvm.io/]

Steps 3

Installing the ruby environment with RVM

$ RVM Install 2.1.3

$ sed-i. Bak ' s!cache.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby! ' ~/.rvm/config/db

Ruby Gemgem sources-l$ Gem source-r https://rubygems.org/

$ gem source-a https://ruby.taobao.org

installation Rails Environment

$ gem Install rails--version 4.0.4--no-ri--no-rdoc-v

$ rails-v

based on project Settings Ruby version and the standalone Gem Environment

In the project root directory, create two files, in the. ruby-version file, you can specify the version of Ruby, in. Ruby-gemset, specify rails and the corresponding gem.

H My Zsh

With the use of the necessary, it is recommended to use. Installation Guide

Macvim

Brew Install ctags Macvim--env-std--override-system-vim

Vim Configuration

http://ruby.taobao.org

http://huacnlee.com/blog/how-to-start-learning-ruby-on-rails/

Installing the ruby Rails environment

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.