HOWTO: Install Ruby on Rails on Ubuntu 7.10 Gutsy Gibbon
1. Enable the universe repositorysudo vi /etc/apt/sources.list
Find and uncomment the following linesdeb http://us.archive.ubuntu.com/ubuntu dapper universe main restricted universe
deb http://security.ubuntu.com/ubuntu dapper-security universe
2. Install rubysudo apt-get install ruby ri rdoc
3. Install rubygemssudo apt-get install rubygems
4. Install Railssudo gem install rails
NOTE: If you get, as I did, an error at this point:
uninitialized constant Gem::GemRunner
then the fix is:sudo vi /usr/bin/gem
After the line require ‘rubygems’ add the line:require 'rubygems/gem_runner'
5. Test installationcd
rails testapp
cd testapp
./server start
Open a browser to http://localhost:3000 and you should see the rails welcome page.
You can remove the testapp with:cd
rm -fr testapp






