I’ve done this too many times to have not documented it somewhere.
Ruby 1.8.7 is the default on Intrepid; 1.8.6 is needed to run rails < 2.1, so it’s useful to know how to do it.
1. Install ruby from source.
2. install rubygems from source
3. You’ll get the following error:
in `gem_original_require’: no such file to load — zlib (LoadError)
if you try to use rubygems.
To solve this, go into your ruby source directory:
sudo make install
4. sudo gem install rails -v 2.0.2