As root:
cd src/rubygems-1.3.7 export RUBYOPT="" ruby setup.rb
RUBYOPT is set in .bashrc to include ruby gems, but means that ruby will fail if it can't find a working gems install.
Gems commonly used:
su # gems can be installed for one user only but otherwise need to be run as administrator or root gem update --system gem install mini_exiftool