Upgrading Ruby & Rails on CentOS

Hi Experts,

I have no previous experience with Ruby on Rails. I'm trying to upgrade it from;

[root@server1 ~]# uname -r

[root@server1 ~]# ruby -v
ruby 1.8.5 (2006-08-25) [x86_64-linux]

[root@server1 ~]# rails -v
Rails 2.1.1

Ruby 1.8.72, 1.9.2, 1.9.3, 2.0.01, jruby-1.6.7, jruby-1.7.2      
Rails 3.2.13

What is the best approach for this ? any HOWTOS?
Any support would be highly appreciated.

Thanks !
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm sorry, but that is quire a far way. I'm sure there are a lot of changes between 2.1 and 3.2. So I think you will have to touch a lot of your old files. Our experience is that you can not count that things which have worked even a few month in the past run unchanged today.

So be warned that you may have to touch a lot of things.

Now my suggestion for the migration path. I would prefer the rvm solution, because there are not so many rubies and it's one tool which you can really use to have different rubies running. So I would keep my old rails my old ruby. Install newer ones as I like and after that trying to migrate my older code.

The rvm project page is at:

Regards and good luck

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shakthi777Author Commented:
Tnx  alot !
Your system has not been upgraded since 2011 (it is called CentOS 5.6)
yum upgrade will just apply security patches to same ruby and rails (at least system will become secure, at small chance something is so customized from defaults that you need to figure out how it broke)

CentOS 6 will give ruby 1.8.7.patch with rubygem to install rails

Ubuntu LTS and Debian are better at fresh versions of software and long support.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.