Skip to content

Instantly share code, notes, and snippets.

@yowainwright
Created February 19, 2017 10:13
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 yowainwright/df78adc20fd0032bc5b81c0d0547c8d5 to your computer and use it in GitHub Desktop.
Save yowainwright/df78adc20fd0032bc5b81c0d0547c8d5 to your computer and use it in GitHub Desktop.
Quick Ruby Setup
# Quik Setup For Ruby
# ===================
# This gist provides a quick ruby env setup for mac
# This gist is deeply inspired by:
# https://gist.github.com/MicahElliott/2407918
# installs homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# installs rbenv
brew install rbenv
# installs ruby-build
brew install ruby-build
# install different ruby versions
rbenv install 2.3.1
rbenv install 2.3.3
# define your global ruby version
rbenv global 2.3.3
# change your gem permissions
sudo chown -R `whoami` /Library/Ruby/Gems
# install bundler
gem install bundler
# note: you should not have to use the `sudo` command ever when installing gems, rubies after this setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment