N5ken's technical blog

Just another WordPress.com site

First play of RVM (Ruby Version Manager)

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 (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]

So, by now, you have finished the installation of RVM, congratulation!!!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: