Skip to content

Instantly share code, notes, and snippets.

@include
Last active August 29, 2015 14:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save include/a347b784d13eb50e58ab to your computer and use it in GitHub Desktop.
Save include/a347b784d13eb50e58ab to your computer and use it in GitHub Desktop.
homebrew_rbenv

Homebrew

$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
$ brew doctor

$ cat > ~/.profile
homebrew=/usr/local/bin:/usr/local/sbin
export PATH=$homebrew:$PATH

$ source ~/.profile
$ brew update

rbenv & Ruby

$ brew tap homebrew/dupes
$ brew install autoconf automake apple-gcc42

$ brew install rbenv ruby-build

$ cat > ~/.profile
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
$ source ~/.profile

$ rbenv install 2.1.2

$ rbenv versions
* system (set by /Users/include/.rbenv/version
2.1.2

$ rbenv global 2.1.2

$ ruby --version
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment