Error installing rails on ubuntu linux

I got the following while attempting to install rails on Ubuntu 6.06
LTS with Ruby 1.8.4:

[email protected]:~/Desktop/rubygems-0.9.0$ sudo gem install rails
Bulk updating Gem source index for:
Successfully installed rails-1.1.6
Successfully installed rake-0.7.1
Successfully installed activesupport-1.3.1
Successfully installed activerecord-1.14.4
Successfully installed actionpack-1.12.5
Successfully installed actionmailer-1.2.5
Successfully installed actionwebservice-1.1.6
gem_original_require': no such file to load -- rdoc/rdoc (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from /usr/local/lib/site_ruby/1.8/rubygems/doc_manager.rb:71:in
load_rdoc' from /usr/local/lib/site_ruby/1.8/rubygems/doc_manager.rb:41:ingenerate_ri’
/usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:283:in execute' from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:282:inexecute’
/usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:220:in execute' from /usr/local/lib/site_ruby/1.8/rubygems/command.rb:69:ininvoke’
process_args' from /usr/local/lib/site_ruby/1.8/rubygems/cmd_manager.rb:88:inrun’
from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:29:in
from /usr/bin/gem:23

Has anyone experienced this? Any ideas exactly whats going on or how
to correct it?


i don’t know what that was all about but i had a fairly pretty easy time
using this link…(didn’t take more than an hour or so). delete any
rails/ruby apps/conf files on your computer and just follow this from
start to finish (it has rails, ruby, sql, actionmailer, actionthings,
etc) very cool link. hope it helps.


Is rdoc installed? You should use synaptic/apt-get to install ruby,
rdoc, ri and irb. Gems should be installed from source (following
instructions at, but it looks like you’ve got
gems installed already. Then re-run ‘sudo gem install rails
–include-dependencies’ and that should work much better. No need to
start from scratch. You’re almost there. It’s just that the
Debian/Ubuntu people seem to like breaking packages into many tiny
pieces, so just because you have ‘ruby’ installed doesn’t mean you have
all the other pieces to have a fully working ruby for
installing/running rails.