• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 514
  • Last Modified:

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 !
1 Solution
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
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now