Cocoa Faculty

iOS and Mac OS X programming

Install Homebrew + RVM

| Comments

Homebrew + RVM Setup

Jotting down the setup of Homebrew + RVM for new machine.

Install Homebrew

  1. Install Homebrew

  2. Add the following to ~/.bash_profile

# Put /usr/local/bin/ before /usr/bin/ to ensure the programs provided by
# Homebrew will be used instead of those system-provided.
export PATH="/usr/local/bin:$PATH"

Save changes to ~/.bash_profile and then restart Terminal.

Try out Homebrew

brew doctor // run this everytime before/after installing any new formula
brew install git
brew install wget
brew list
brew update
brew search <formula>
brew upgrade <formula>
brew info <formula>
brew uninstall <formula>
brew help

Install RVM

  1. Install RVM

  2. Add the following to ~/.bash_profile

# Add RVM to PATH for scripting
export PATH="$PATH:$HOME/.rvm/bin"

# Load RVM into a shell session *as a function*
if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
  source "$HOME/.rvm/scripts/rvm";

Try out RVM

rvm install 2.0.0
rvm --default 2.0.0
rvm use 2.0.0
rvm update --head # update rvm itself
gem install rails
gem install nomad-cli

Install specific version of Homebrew formula



comments powered by Disqus