Skip to content

Instantly share code, notes, and snippets.

@vincentpaca
Last active December 15, 2015 07:49
Show Gist options
  • Save vincentpaca/5226012 to your computer and use it in GitHub Desktop.
Save vincentpaca/5226012 to your computer and use it in GitHub Desktop.
RVM, Ruby and Rails on OSX

RVM, Ruby and Rails on OSX

  1. Download and install Xcode from the App Store.

  2. Download and install command line tools on Xcode. On the menu go to Preferences > Downloads > Install Command Line Tools

  3. Install homebrew like so:

     ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
    
  4. Install git with:

     brew install git
    
  5. Install rvm with:

     curl -L get.rvm.io | bash -s stable --auto
    
  6. Open a new terminal window and verify if rvm was installed properly. Do:

     rvm requirements
    

    and it should give you a wall of text starting with `Requirements for osx...

  7. There are still a couple more dependencies needed listed after doing rvm requirements. Install them by doing:

     brew update
     brew tap homebrew/dupes
     brew install bash curl autoconf automake apple-gcc42 libtool pkg-config openssl readline libyaml sqlite libxml2 libxslt libksba`
    
  8. Install ruby.

     rvm install 1.9.3-p392
    

    Installing other rubies are easy. You can list them all by doing rvm list known.

  9. Install Rails.

     gem install rails
    

And that's it! Easy as pie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment