From: Brian Candler Date: 2007-02-23T23:50:55+09:00 Subject: Re: rubygems and CentOS 4.4 As a comparison point: I just tried this on an Ubuntu-6.06 system. rubygems itself installed without errors, but activerecord was not found on the first attempt. The RubyInline gem gave a similar set of warnings, but not the "unexpected token: '# bin <--- bin ---> lib ---> lib/rbconfig <--- lib/rbconfig ---> lib/rubygems <--- lib/rubygems <--- lib ---> bin <--- bin ---> lib ---> lib/rbconfig <--- lib/rbconfig ---> lib/rubygems <--- lib/rubygems <--- lib rm -f InstalledFiles ---> bin mkdir -p /usr/bin/ install gem /usr/bin/ install gem_mirror /usr/bin/ install gem_server /usr/bin/ install gemlock /usr/bin/ install gemri /usr/bin/ install gemwhich /usr/bin/ install index_gem_repository.rb /usr/bin/ install update_rubygems /usr/bin/ <--- bin ---> lib mkdir -p /usr/local/lib/site_ruby/1.8/ install gemconfigure.rb /usr/local/lib/site_ruby/1.8/ install rubygems.rb /usr/local/lib/site_ruby/1.8/ install ubygems.rb /usr/local/lib/site_ruby/1.8/ ---> lib/rbconfig mkdir -p /usr/local/lib/site_ruby/1.8/rbconfig install datadir.rb /usr/local/lib/site_ruby/1.8/rbconfig <--- lib/rbconfig ---> lib/rubygems mkdir -p /usr/local/lib/site_ruby/1.8/rubygems install builder.rb /usr/local/lib/site_ruby/1.8/rubygems install cmd_manager.rb /usr/local/lib/site_ruby/1.8/rubygems install command.rb /usr/local/lib/site_ruby/1.8/rubygems install config_file.rb /usr/local/lib/site_ruby/1.8/rubygems install custom_require.rb /usr/local/lib/site_ruby/1.8/rubygems install dependency_list.rb /usr/local/lib/site_ruby/1.8/rubygems install doc_manager.rb /usr/local/lib/site_ruby/1.8/rubygems install format.rb /usr/local/lib/site_ruby/1.8/rubygems install gem_commands.rb /usr/local/lib/site_ruby/1.8/rubygems install gem_open_uri.rb /usr/local/lib/site_ruby/1.8/rubygems install gem_openssl.rb /usr/local/lib/site_ruby/1.8/rubygems install gem_runner.rb /usr/local/lib/site_ruby/1.8/rubygems install installer.rb /usr/local/lib/site_ruby/1.8/rubygems install old_format.rb /usr/local/lib/site_ruby/1.8/rubygems install open-uri.rb /usr/local/lib/site_ruby/1.8/rubygems install package.rb /usr/local/lib/site_ruby/1.8/rubygems install remote_fetcher.rb /usr/local/lib/site_ruby/1.8/rubygems install remote_installer.rb /usr/local/lib/site_ruby/1.8/rubygems install rubygems_version.rb /usr/local/lib/site_ruby/1.8/rubygems install security.rb /usr/local/lib/site_ruby/1.8/rubygems install server.rb /usr/local/lib/site_ruby/1.8/rubygems install source_index.rb /usr/local/lib/site_ruby/1.8/rubygems install source_info_cache.rb /usr/local/lib/site_ruby/1.8/rubygems install source_info_cache_entry.rb /usr/local/lib/site_ruby/1.8/rubygems install specification.rb /usr/local/lib/site_ruby/1.8/rubygems install timer.rb /usr/local/lib/site_ruby/1.8/rubygems install user_interaction.rb /usr/local/lib/site_ruby/1.8/rubygems install validator.rb /usr/local/lib/site_ruby/1.8/rubygems install version.rb /usr/local/lib/site_ruby/1.8/rubygems <--- lib/rubygems <--- lib Successfully built RubyGem Name: sources Version: 0.0.1 File: sources-0.0.1.gem Removing old RubyGems RDoc and ri... Installing rubygems-0.9.2 ri... Installing rubygems-0.9.2 rdoc... As of RubyGems 0.8.0, library stubs are no longer needed. Searching $LOAD_PATH for stubs to optionally delete (may take a while)... ...done. No library stubs found. root@candlerb-desktop:/u/build/rubygems-0.9.2# gem install activerecord Bulk updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find activerecord (> 0) in any repository root@candlerb-desktop:/u/build/rubygems-0.9.2# gem install RubyInline Bulk updating Gem source index for: http://gems.rubyforge.org Install required dependency hoe? [Yn] y Install required dependency rubyforge? [Yn] y Install required dependency rake? [Yn] y Successfully installed RubyInline-3.6.2 Successfully installed hoe-1.2.0 Successfully installed rubyforge-0.4.0 Successfully installed rake-0.7.1 Installing ri documentation for RubyInline-3.6.2... inline.rb:306:26: Skipping require of dynamic string: "#{so_name}" inline.rb:617:46: Skipping require of dynamic string: "inline/#{lang}" test_inline.rb:643:33: Skipping require of dynamic string: "#{tempfile.path}.rb"Installing ri documentation for hoe-1.2.0... Installing ri documentation for rubyforge-0.4.0... Installing ri documentation for rake-0.7.1... Installing RDoc documentation for RubyInline-3.6.2... inline.rb:306:26: Skipping require of dynamic string: "#{so_name}" inline.rb:617:46: Skipping require of dynamic string: "inline/#{lang}" test_inline.rb:643:33: Skipping require of dynamic string: "#{tempfile.path}.rb"Installing RDoc documentation for hoe-1.2.0... Installing RDoc documentation for rubyforge-0.4.0... Installing RDoc documentation for rake-0.7.1... root@candlerb-desktop:/u/build/rubygems-0.9.2# root@candlerb-desktop:/u/build/rubygems-0.9.2# gem install --remote activerecordInstall required dependency activesupport? [Yn] y Successfully installed activerecord-1.15.2 Successfully installed activesupport-1.4.1 Installing ri documentation for activerecord-1.15.2... Installing ri documentation for activesupport-1.4.1... Installing RDoc documentation for activerecord-1.15.2... Installing RDoc documentation for activesupport-1.4.1... root@candlerb-desktop:/u/build/rubygems-0.9.2#