Due to the development environment is becoming much more complex than ever, the gems now may have conflict between some projects, so RVM is what exactly you need!
So RVM is not Ruby Virtual Machine, it’s Ruby Version Manager which is used to separate your various Ruby environment, by Using the RVM, you are able to install, uninstall difference Ruby, e.g. Ruby 1.8.x, 1.9.x, REE, IronRuby, and managing gems..
RVM is cool, right? so now, i think you can’t wait to have a try 🙂
Installing RVM is quite easy, firstly, you need to confirm the following dependencies, my OS is Ubuntu 10.10:
cURL (apt-get install curl)
If you are ready, you just need to execute this command to finish the installation:
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
and add the line below to your bash profile, for example in Ubuntu is “/etc/profile”
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
Back to the command line, run “rvm -v”, and you should see the version information:
$ source /etc/profile
$ rvm -v
rvm 1.6.20 by Wayne E. Seguin (email@example.com) [https://rvm.beginrescueend.com/]
So, by now, you have finished the installation of RVM, congratulation!!!