Skip to content

Instantly share code, notes, and snippets.

@sk187
Created July 21, 2015 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sk187/610dc0a281ed20e045d5 to your computer and use it in GitHub Desktop.
Save sk187/610dc0a281ed20e045d5 to your computer and use it in GitHub Desktop.
# First type this into your terminal. *You must already have homebrew installed
brew install ruby
# After installing ruby, we need to edit the path on your computer so it uses
# the new installation of ruby and not the one packaged with your computer.
# Type the following into your terminal to edit the paths with VIM
sudo vi /etc/paths
# It will ask for your password (the one you used to login / install programs)
# Just type it in and press enter *You will not see anything but you are entering something I promise.
# This is what you will probably see
/usr/bin
/bin
/usr/sbin
/sbin
# We need to edit the paths to look like this:
/usr/local/bin # This is where your brew installed programs are
/usr/bin # This is where the system version of Ruby is
/bin
/usr/sbin
/sbin
# Once you have made these changes, you need to hit ESC, then :w (write) to save the file
# Once saved, you can type :q (quit) to exit the text editor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment