RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.
Over time, the tools got better, and ever since Mavericks, setting up a development environment on a Mac with Apple's standalone Command Line Tools, Homebrew, Git, a Ruby manager (such as chruby, rbenv, or RVM), Ruby, and Rails has been a fairly stress-free process that's. Install Homebrew (Optional) When you try to install a Ruby version it will attempt to install Macports. In my opinion Homebrew is better. If Homebrew is installed before you attempt to install a ruby version with RVM then it will skip the Macports install. Install Homebrew on Mac OS.
My homebrew experience has been a happy one, I don’t see myself using MacPorts or Fink again. Homebrew documentation can be found here. RVM (Ruby Version Manager) takes care of managing my multiple Ruby and Gem versions. Mac Homebrew (RVM/MySQL/Redis) setup. Follow the steps below to setup a local development environment: XQuartz. Recommended to download latest XQuartz. Recommended to download iTerm2 and use in place of the default Terminal.app that comes with OSX. Editing the script means brew update won't work; there are local edits to tracked files which causes the git pull to fail. I did this, which I suspect is cleaner: cd / usr / local / Library git pull -q origin refs / heads / master: refs / remotes / origin / master. There are no complaints from brew doctor.
- Install GPG keys: In case you encounter an issues or want to know more, check security
- Install RVM:
- For installing RVM with default Ruby and Rails in one command, run:
- For more details and troubleshooting visit the installation documentation,
- and read about the new autolib features
- watch the most accurate (but not official) rvm screencast
- read the most accurate (but not official) rvm cheat sheet
- starting with Rails? watch the RailsCasts.com on Getting Started with Rails

Community Maintained Project
RVM is maintained and supported by the community via issue trackers and pull requests:
Homebrew Rom
- especially RVM project issues tracker.
Production
RVM lets you deploy each project with its own completely self-contained and dedicated environment, from the specific version of ruby, all the way down to the precise set of required gems to run your application. Having a precise set of gems also avoids the issue of version conflicts between projects, which can cause difficult-to-trace errors and hours of hair loss. With RVM, NO OTHER GEMS than those required are installed. This makes working with multiple complex applications, where each has a long list of gem dependencies, much more efficient. RVM lets you easily test gem upgrades, by switching to a new clean set of gems to test with, while leaving your original set intact. It is flexible enough to even let you maintain a set of gems per environment, or per development branch, or even per individual developer's taste!
Development
RVM reduces the complexity of the many facets of ruby development through its command-line API. With RVM, you can have **identical** self-contained environments in your Development, CI, Q/A, Staging, and Production environments. No more hidden gotchas: if it works for one of them, it will work in all of them. With named gemsets, you can reliably and immediately push changes from one environment to another. And, RVM is for Ruby applications, *not just for Rails*! Any Ruby based application will benefit from your use of RVM.
Testing
RVM enables you to easily test both upgrade and escape paths very easily and consistently. With RVM, you can run a test suite, rake tasks, benchmarks and gem commands against multiple ruby versions at the same time. This means that you can easily ensure your applications work in Ruby 1.8.X, REE, MRI 1.9.1, jruby, etc... and quickly expose any areas in which they do not.
Gem Management
RVM has an extremely flexible gem management system called Named Gem Sets. RVM's 'gemsets' make managing gems across multiple versions of Ruby a non-issue. RVM lets you add a small text file to your application's repository, instead of checking in tons of gems which would needlessly inflate your repository size. Additionally, RVM's gemset management uses a common cache directory, so only one downloaded version of each gem resides on disk rather than several copies.
Homebrew Rvm Install
RVM helps ensure that all aspects of Ruby are completely contained within user space, strongly encouraging safer, non-root use. Use of RVM rubies thus provides a higher level of system security, and therefore reduces risk and cuts overall system downtime. Additionally, since all processes run at the user level, a compromised ruby process cannot compromise the entire system.

Homebrew Rmtree
Support
Homebrew Roms 64
RVM is continuously evolving, thanks to community pull requests to the project.
