How to install Ruby 1.9.3 and Rails 3.2 on Amazon Linux

Naturally, I tried this the direct way first, installing from source but hit an error in a gem native extension.

So I found this much easier way using RVM and wanted to share it!

First install RVM

Then it’s really easy

  1. rvm install 1.9.3
  2. rvm gemset create rails32 (to create a gemset to use with the latest rails)
  3. rvm 1.9.3@rails32 (to set that ruby as current, with that gemset)
  4. gem install rails –no-ri –no-rdoc

Done, enjoy!

Leave a comment

Leave a Reply

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

You are commenting using your 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 )


Connecting to %s

%d bloggers like this: