Skip to content

Instantly share code, notes, and snippets.

@nrollr nrollr/Ruby_and_Rails.md
Last active Mar 28, 2018

Embed
What would you like to do?
Ruby and Rails on El Capitan

#Install Ruby and Rails on El Capitan The following procedure was used to install the required components on El Capitan (clean install)

First make sure Xcode Command Line Tools are installed.
Open Terminal and enter: xcode-select --install you will be prompted to start the installation. Once finished proceed..

##Install Homebrew Important Notice: Homebrew and El Capitan, make sure to read the article!

  • Enter the following command: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • After installation, check the installed version of Homebrew: brew -v
  • Expected output: Homebrew 0.9.5

##Install Git

  • Enter the following command: brew install git
  • After installation, check the installed version of Homebrew: git --version
  • Expected output: git version 2.6.0

Configure username and email address for all Git Repositories:
git config --global user.name "your name"
git config --global user.email "your email address"

Optional : verify your configuration: git config -l

##Install Ruby Version Manager

  • Enter the following command: \curl -L https://get.rvm.io | bash -s stable
  • After installation, check the installed version of the Ruby Version Manager: rvm -v
  • Expected output: rvm 1.26.11 (latest)

If you have a .bash_profile you should add source ~/.profile at the bottom of the file and reload Terminal.

  • Confirm that rvm is loaded as a function: type rvm | head -n 1
  • Expected output: rvm is a function

##Install Ruby

  • Enter the following command: rvm use ruby --install --default
  • After installation, check the installed version of Ruby: ruby -v
  • Expected output: ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin15]

####Upgrade to the latest stable version of Ruby (currently 2.2.3)

  • Enter the following command: rvm install 2.2.3
  • After installation, check the installed version of Ruby: ruby -v
  • Expected output: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15]
  • Now set the latest stable version as the default, enter the following command: rvm --default use 2.2.3

##Install Rails

  • Enter the following command: gem install rails --no-ri --no-rdoc
  • After installation, check the installed version of Rails: rails --version
  • Expected output: Rails 4.2.4
@SoonaMata

This comment has been minimized.

Copy link

commented Jan 26, 2017

none of these brews are working and the "Homebrew and El Capitan ( the os i am running on) read-me gothic page link is expired .

@butcherpete

This comment has been minimized.

Copy link

commented Feb 16, 2017

Dead link.

@kAliRM70

This comment has been minimized.

Copy link

commented Mar 28, 2018

Thank you very much...This helps me a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.