The trickster way to install rails on ubuntu
first you
sudo apt-get install rubygems
then you do a gem upgrade
sudo gem update —system
then you uninstall rubygems but if it warns you that it will uninstall ruby1.8
you do an extra install for that
sudo apt-get remove rubygems
extrastep:
sudo apt-get install ruby1.8
then you create a link to gem from gem1.8
cd /usr/bin
sudo ln -s gem1.8 gem
install the gems as needed
btw I have installed the following ruby extra debs:(extra step if needed)
3 years agosudo apt-get libopenssl-ruby librmagick-ruby libreadline-ruby1.8 ri rdoc