How To Install Ruby on Rails on {rPath Linux, Foresight}

  1. su -
  2. conary update ruby=contrib.rpath.org@rpl:1 rubygems=ruby.rpath.org@rpl:devel
  3. Re-source your profile to pickup GEM_HOME (run . /etc/profile.d/rubygems.sh).
  4. gem install rails

At this point, you’ll need to log out of your root shell and re-source your profile again as your username (or, to be specific, run . /etc/profile.d/rubygems.sh) to pick up GEM_HOME for your user shell. Note: you don’t have to do this little trick every time you install a gem, just the first time you install rubygems.

The goal this year is to have conary update rails “just work”.

UPDATE: Doh! It’s not rc.d, it’s profile.d!

2007.02.03 · permalink