Problem with RubyGems installation

Hello,

I am trying to install RubyGems on Ubuntu and i'm having trouble. I've downloaded rubygems 1.3.1 and when i run the sudo ruby setup.rb command I get the problem mentioned below. I'd really appreciate if someone can help me out.

Thanks

mkdir -p /usr/local/lib/site_ruby/1.8 mkdir -p /usr/bin install -c -m 0644 rbconfig/datadir.rb /usr/local/lib/site_ruby/1.8/rbconfig/datadir.rb install -c -m 0644 rubygems.rb /usr/local/lib/site_ruby/1.8/rubygems.rb install -c -m 0644 rubygems/timer.rb /usr/local/lib/site_ruby/1.8/rubygems/timer.rb install -c -m 0644 rubygems/exceptions.rb /usr/local/lib/site_ruby/1.8/rubygems/exceptions.rb install -c -m 0644 rubygems/specification.rb /usr/local/lib/site_ruby/1.8/rubygems/specification.rb install -c -m 0644 rubygems/rubygems_version.rb /usr/local/lib/site_ruby/1.8/rubygems/rubygems_version.rb install -c -m 0644 rubygems/source_index.rb /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb install -c -m 0644 rubygems/dependency_installer.rb /usr/local/lib/site_ruby/1.8/rubygems/dependency_installer.rb install -c -m 0644 rubygems/user_interaction.rb /usr/local/lib/site_ruby/1.8/rubygems/user_interaction.rb install -c -m 0644 rubygems/installer.rb /usr/local/lib/site_ruby/1.8/rubygems/installer.rb install -c -m 0644 rubygems/old_format.rb /usr/local/lib/site_ruby/1.8/rubygems/old_format.rb install -c -m 0644 rubygems/source_info_cache.rb /usr/local/lib/site_ruby/1.8/rubygems/source_info_cache.rb install -c -m 0644 rubygems/command.rb /usr/local/lib/site_ruby/1.8/rubygems/command.rb install -c -m 0644 rubygems/command_manager.rb /usr/local/lib/site_ruby/1.8/rubygems/command_manager.rb install -c -m 0644 rubygems/indexer.rb /usr/local/lib/site_ruby/1.8/rubygems/indexer.rb install -c -m 0644 rubygems/defaults.rb /usr/local/lib/site_ruby/1.8/rubygems/defaults.rb install -c -m 0644 rubygems/requirement.rb /usr/local/lib/site_ruby/1.8/rubygems/requirement.rb install -c -m 0644 rubygems/validator.rb /usr/local/lib/site_ruby/1.8/rubygems/validator.rb install -c -m 0644 rubygems/dependency.rb /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb install -c -m 0644 rubygems/server.rb /usr/local/lib/site_ruby/1.8/rubygems/server.rb install -c -m 0644 rubygems/commands/update_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/update_command.rb install -c -m 0644 rubygems/commands/generate_index_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/generate_index_command.rb install -c -m 0644 rubygems/commands/query_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/query_command.rb install -c -m 0644 rubygems/commands/server_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/server_command.rb install -c -m 0644 rubygems/commands/list_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/list_command.rb install -c -m 0644 rubygems/commands/install_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/install_command.rb install -c -m 0644 rubygems/commands/stale_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/stale_command.rb install -c -m 0644 rubygems/commands/pristine_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/pristine_command.rb install -c -m 0644 rubygems/commands/help_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/help_command.rb install -c -m 0644 rubygems/commands/check_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/check_command.rb install -c -m 0644 rubygems/commands/search_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/search_command.rb install -c -m 0644 rubygems/commands/uninstall_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/uninstall_command.rb install -c -m 0644 rubygems/commands/cert_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/cert_command.rb install -c -m 0644 rubygems/commands/build_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/build_command.rb install -c -m 0644 rubygems/commands/dependency_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/dependency_command.rb install -c -m 0644 rubygems/commands/unpack_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/unpack_command.rb install -c -m 0644 rubygems/commands/specification_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/specification_command.rb install -c -m 0644 rubygems/commands/cleanup_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/cleanup_command.rb install -c -m 0644 rubygems/commands/sources_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/sources_command.rb install -c -m 0644 rubygems/commands/fetch_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/fetch_command.rb install -c -m 0644 rubygems/commands/contents_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/contents_command.rb install -c -m 0644 rubygems/commands/environment_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/environment_command.rb install -c -m 0644 rubygems/commands/lock_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/lock_command.rb install -c -m 0644 rubygems/commands/rdoc_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/rdoc_command.rb install -c -m 0644 rubygems/commands/which_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/which_command.rb install -c -m 0644 rubygems/commands/outdated_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/outdated_command.rb install -c -m 0644 rubygems/commands/mirror_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/mirror_command.rb install -c -m 0644 rubygems/require_paths_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/require_paths_builder.rb install -c -m 0644 rubygems/package/tar_reader/entry.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_reader/entry.rb install -c -m 0644 rubygems/package/tar_reader.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_reader.rb install -c -m 0644 rubygems/package/tar_input.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_input.rb install -c -m 0644 rubygems/package/tar_output.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_output.rb install -c -m 0644 rubygems/package/tar_header.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_header.rb install -c -m 0644 rubygems/package/tar_writer.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_writer.rb install -c -m 0644 rubygems/package/f_sync_dir.rb /usr/local/lib/site_ruby/1.8/rubygems/package/f_sync_dir.rb install -c -m 0644 rubygems/local_remote_options.rb /usr/local/lib/site_ruby/1.8/rubygems/local_remote_options.rb install -c -m 0644 rubygems/version.rb /usr/local/lib/site_ruby/1.8/rubygems/version.rb install -c -m 0644 rubygems/digest/sha2.rb /usr/local/lib/site_ruby/1.8/rubygems/digest/sha2.rb install -c -m 0644 rubygems/digest/sha1.rb /usr/local/lib/site_ruby/1.8/rubygems/digest/sha1.rb install -c -m 0644 rubygems/digest/digest_adapter.rb /usr/local/lib/site_ruby/1.8/rubygems/digest/digest_adapter.rb install -c -m 0644 rubygems/digest/md5.rb /usr/local/lib/site_ruby/1.8/rubygems/digest/md5.rb install -c -m 0644 rubygems/uninstaller.rb /usr/local/lib/site_ruby/1.8/rubygems/uninstaller.rb install -c -m 0644 rubygems/format.rb /usr/local/lib/site_ruby/1.8/rubygems/format.rb install -c -m 0644 rubygems/custom_require.rb /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb install -c -m 0644 rubygems/package.rb /usr/local/lib/site_ruby/1.8/rubygems/package.rb install -c -m 0644 rubygems/platform.rb /usr/local/lib/site_ruby/1.8/rubygems/platform.rb install -c -m 0644 rubygems/dependency_list.rb /usr/local/lib/site_ruby/1.8/rubygems/dependency_list.rb install -c -m 0644 rubygems/config_file.rb /usr/local/lib/site_ruby/1.8/rubygems/config_file.rb install -c -m 0644 rubygems/source_info_cache_entry.rb /usr/local/lib/site_ruby/1.8/rubygems/source_info_cache_entry.rb install -c -m 0644 rubygems/gem_openssl.rb /usr/local/lib/site_ruby/1.8/rubygems/gem_openssl.rb install -c -m 0644 rubygems/install_update_options.rb /usr/local/lib/site_ruby/1.8/rubygems/install_update_options.rb install -c -m 0644 rubygems/gem_runner.rb /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb install -c -m 0644 rubygems/builder.rb /usr/local/lib/site_ruby/1.8/rubygems/builder.rb install -c -m 0644 rubygems/test_utilities.rb /usr/local/lib/site_ruby/1.8/rubygems/test_utilities.rb install -c -m 0644 rubygems/ext.rb /usr/local/lib/site_ruby/1.8/rubygems/ext.rb install -c -m 0644 rubygems/gem_path_searcher.rb /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb install -c -m 0644 rubygems/spec_fetcher.rb /usr/local/lib/site_ruby/1.8/rubygems/spec_fetcher.rb install -c -m 0644 rubygems/security.rb /usr/local/lib/site_ruby/1.8/rubygems/security.rb install -c -m 0644 rubygems/doc_manager.rb /usr/local/lib/site_ruby/1.8/rubygems/doc_manager.rb install -c -m 0644 rubygems/ext/ext_conf_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/ext_conf_builder.rb install -c -m 0644 rubygems/ext/rake_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/rake_builder.rb install -c -m 0644 rubygems/ext/configure_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/configure_builder.rb install -c -m 0644 rubygems/ext/builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/builder.rb install -c -m 0644 rubygems/version_option.rb /usr/local/lib/site_ruby/1.8/rubygems/version_option.rb install -c -m 0644 rubygems/remote_fetcher.rb /usr/local/lib/site_ruby/1.8/rubygems/remote_fetcher.rb install -c -m 0644 ubygems.rb /usr/local/lib/site_ruby/1.8/ubygems.rb cp gem /tmp/gem install -c -m 0755 /tmp/gem /usr/bin/gem1.8 rm /tmp/gem rm -f /usr/lib/ruby/gems/1.8/source_cache Removing old RubyGems RDoc and ri Installing rubygems-1.3.1 ri into /usr/lib/ruby/gems/1.8/doc/rubygems-1.3.1/ri ./lib/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- rdoc/rdoc (LoadError)   from ./lib/rubygems/custom_require.rb:31:in `require'   from setup.rb:283:in `run_rdoc'   from setup.rb:296

What OS are you using?

Bobnation wrote:

What OS are you using?

On Nov 23, 7:28�pm, Mrmaster Mrmaster <rails-mailing-l...@andreas-

I'm using Ubuntu 8.04

Bobnation wrote:

What OS are you using?

On Nov 23, 7:28�pm, Mrmaster Mrmaster <rails-mailing-l...@andreas-

Actually i just upgraded to Ubuntu 8.10, tried the same steps and still got the same error message.

This line seems strange: install -c -m 0644 ubygems.rb /usr/local/lib/ site_ruby/1.8/ubygems.rb

It looks like it is missing an "r" ... but I might just be nitpicking here. Have you tried installing an older version (say 1.3.0) and then updating to 1.3.1? Also, do you have the development headers for Ruby 1.8.7 installed. I know I just did this same installation maybe last week, but I might have gone from 1.3.0 to 1.3.1.

Did you do an apt-get install ruby-full or just the ruby package?

Bobnation wrote:

Did you do an apt-get install ruby-full or just the ruby package?

On Nov 23, 10:34�pm, Mrmaster Mrmaster <rails-mailing-l...@andreas-

I used this command: $ sudo apt-get install ruby irb rdoc libruby1.8 ruby1.8-dev

I got it from Beginning rails from novice to professional book.

Bobnation wrote:

Did you do an apt-get install ruby-full or just the ruby package?

On Nov 23, 10:34�pm, Mrmaster Mrmaster <rails-mailing-l...@andreas-

I'm assuming if i have the latest version wouldn't everything with it come installed?

Bobnation wrote:

Did you do an apt-get install ruby-full or just the ruby package?

On Nov 23, 10:34�pm, Mrmaster Mrmaster <rails-mailing-l...@andreas-

I've also tried the command you put there and received this message:

mrmaster@mrmaster-laptop:/usr/local/lib/site_ruby/1.8$ sudo apt-get install ruby full Reading package lists... Done Building dependency tree Reading state information... Done ruby is already the newest version. ruby set to manually installed. E: Couldn't find package full

Make sure you put the dash in between ruby and full.

Looking at what you installed, I'm thinking that is not the problem, but it might not hurt.

Everything works now. Thank you soo much for your help. Just a recap I think the problem was my ruby install the ruby full install command you gave fixed everything.

Excellent. I'm still trying to figure out what was missing, but there must have been a dependency missing. I'm glad I could help.

Bobnation wrote:

Excellent. I'm still trying to figure out what was missing, but there must have been a dependency missing. I'm glad I could help.

Just in case anybody else is having the same problem.

I encountered the same problem and, based on the error message, just did a

yum install ruby-rdoc

That seems to have fixed it.

I'm on CentOS 5.2, there is no rubyfull/ruby-full in the default repo

Thank-you Thank-you Thank-you

Was having the same problem. The installing ruby-rdoc solved the problem.