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:
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:
Go to http://0.0.0.0:3000/ to see it in action 🙂
You can also check: