Rails on Gentoo
From OpenStreetMap
Installation on Gentoo
Installing Rails should be straightforward:
emerge --ask ">=dev-ruby/rails-1.2.3"
This will also install Ruby, if you don't already have it. However, you may find that Rails 1.2.3 is masked. In this case, you'll need to unmask the appropriate packages. Add lines similar to the following to your /etc/portage/package.keywords to unmask these packages.
=dev-ruby/rails-1.2.3 =dev-ruby/actionpack-1.13.3 =dev-ruby/actionwebservice-1.2.3 =dev-ruby/activerecord-1.15.3 =dev-ruby/activesupport-1.4.2 =dev-ruby/actionmailer-1.3.3
Note that these packages were masked for a reason (they're not deemed stable), and by unmasking them, you've basically saying "I know these are unstable; install them anyway." After doing this, you should be able to emerge Rails 1.2.3.
Once you've got Rails installed, you'll also need to install a couple extra Ruby packages: the libxml bindings and RMagick:
emerge --ask dev-ruby/libxml dev-ruby/rmagick

