Created
February 19, 2017 10:13
-
-
Save yowainwright/df78adc20fd0032bc5b81c0d0547c8d5 to your computer and use it in GitHub Desktop.
Quick Ruby Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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