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:
There’s an error:
yum install ruby-docs
Note the s on the end 🙂
LikeLike
Thanks Brendon.
LikeLike
Greate tutorial !.
LikeLike
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!
LikeLike
hi,
first of all million thanx to you. your article is really an eye opener. keep it up.
thanx alot
ravish
LikeLike