Install, manage and switch between Rails 2 and Rails 3 on Fedora

March 24, 2011 | By Regaz | Filed in: Uncategorized.

Hi Guys,

 I will show You how to install Rails 2 together with Rails3 on Fedora 12 and above…

Your username should be on the Admin group on a fresh install if you want the code will work “as is.
So we intend all commands executed as a user comprised in the admin’s group.

  1. Need to install some prerequisite stuff and libraries:

    $ sudo yum install git bison svn autoconf sqlite-devel

    For manage ruby versions we will provide to install of rvm (“Ruby versions manager”)

  2. Install rvm:

    bash < <( curl )

    Next we need to set our .bashrc so

  3. Put this at the end of your .bashrc:

    if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm"; fi

    We will need potentially also to meet requirements given by typing in the terminal

    rvm notes
  4. Need to install some extra stuff:

    sudo yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel

    Now we will need to open a new tab on Terminal or close and restart it.

    After that we will be ready to install Ruby 1.8.7 and Rails2.
    Lets go!

  5. Install ruby 1.8.7 by rvm

    rvm install 1.8.7
  6. We set our system to use ruby 1.8.7:

    rvm use 1.8.7

    (If your work is almost of time based on Rails2 you can provide to add the option --default)

    Now check your ruby version by

    ruby -v

    Result --> ruby 1.8.7...

    After that we will provide to install Rails 2.3.8.

  7. Install Rails 2.3.8:

    rvm gem install -v=2.3.8 rails

    Now there will need a little correction of our gem's version if rvm provide to install a set than
    isn't good for our Rails version...

  8. Download, untar and install rubygems 1.5.0:


    Untar it:

    tar zxvf rubygems-1.5.0.tgz

    Install it:

    cd rubygems-1.5.0
    ruby setup.rb

    Now check your gem version by:

    gem -v

    Result --> 1.5.0

    You can now test than your Rails2 is effectively working by looking than

    rails test

    will generate a rails scheme.

    Now we can follow to install the newer version of ruby.

  9. Install Ruby 1.9.2:

    rvm install 1.9.2-head

    After that you provide to use the new ruby and set it like your default

  10. Switch Ruby and set it your default:

    rvm use --default 1.9.2-head

    Provide rvm has provide to switch your ruby by typing

    ruby -v

    Result --> ruby 1.9.2

    Now we are ready to complete our Rails installation by installing Rails3

  11. Install Rails3:

    rvm gem install --pre rails

    Now you can check than your rails has changed by typing

    rails -v

    Rails --> 3.x.x

    You can finally check than also your Rails3 is effectively working by

    rails new ./testrails3

    and see than it generate the usual Rails3 scheme.

  12. Do Not Forget to Take a Look..

    Bloogger Blogger, Google Blogger, Google Google

    How to Install the VMware Tools on Linux Mint 12

  13. Some Other Rails Tutorials are Contained in this other Site:
    Climb the InfoWall

    Debian, Linux Virtualization, VMware Tools

    Sviluppo Siti Web


    Fedora Ruby Rails, Fedora Ruby Rails, Fedora Ruby Rails

    Climb the InfoWall

Good luck! :)

Bed and Breakfast Asolo ItalyBed and Breakfast Montebelluna Italy

  • Ruby Rails 2

  • Ruby Rails 3

  • Ruby Rails Development

  • Ruby Rails Wed-Development

  • Ruby Rails Site

  • Ruby Rails Web-Site

  • Ruby Rails Web Application

  • Ruby Rails 2 Fedora

  • Ruby Rails 3 Fedora

  • Ruby Rails Internet Application

  • Ruby Rails Fedora Linux

  • Ruby Rails Web-Application Fedora

  • Ruby Rails Installing on Fedora

  • Ruby Rails Installing on Fedora Linux

  • How to Switch between Ruby Rails 2/3 on Fedora

  • How to Switch between Ruby Rails 2/3 on Fedora Linux

  • Installing Ruby Rails 2/3 on Fedora

  • Installing Ruby Rails 2/3 on Fedora Linux

  • Install Rails Fedora Linux

  • How to Install Rails Fedora Linux

  • Install Rails Fedora Linux Steps

  • Multiple Versions Install Rails Fedora Linux

Tags: , , , , , , , , ,

QuickChic Theme • Powered by WordPress