Ruby on Rails on Fedora Core 6

I just got my shinny new FC6, and I didn’t find a fool proof way to install Ruby on Rails, so here it goes.

First install the following packages:

  • ruby: The Ruby interpreter.
  • ruby-libs: Necessary to run Ruby.
  • ruby-devel: If you plan to build an extension or an application embedding Ruby.
  • ruby-rdoc: Generates Ruby documentation.
  • ruby-mysql: MySQL API module for Ruby.
  • ruby-irb: Interactive Ruby, so you can use it from the terminal

Fedora doesn’t come with Ruby on Rails, so you will need to install it manually. The best way to do that is with RubyGems, but Fedora doesn’t come with that either, so you will need to install it first.

The process is explained in here.

Download RubyGems from here.

Extract, and then as root:
ruby setup.rb

You’ll get:
Successfully built RubyGem

Now that you have RubyGems, you can install Ruby:
gem install rails --include-dependencies

You’ll see (among other things):
Successfully installed rails-[version]

Note: If you don’t have rdoc you’ll see the following non-fatal error:
no such file to load -- rdoc/rdoc (LoadError)

That’s it, now if you want to try it:
rails testapp
cd testapp
ruby script/server

Go to http://0.0.0.0:3000/ to see it in action🙂

You can also check:

8 thoughts on “Ruby on Rails on Fedora Core 6

  1. I found this page easy to follow and helpful. I now have Ruby on Rails on my FC6 box, and it was much easier to install than I’d have imagined. Cheers matey!

  2. Pingback: Amaiko WebLog » عسي ان تنفعنا روبي

  3. Pingback: Amaiko WebLog » عسي ان تنفعنا روبي

  4. Pingback: 100,000 views, and some stats « Felipe Contreras

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s