[Rubygems-developers] Problem installing rubygems-1.3.4 under Cygwin

Brennan, William C william.c.brennan at lmco.com
Mon Jul 13 18:41:43 EDT 2009


I wanted to install rubygems under Cygwin on a Intel machine running
Windows XP.

 

When I attempted to install rubygems-1.3.4, the installation didn't seem
to install much, and then (with the aid of the debug option) I received
some error messages after the"gem update --system" command.  Then the
process just hanged.  See below.

 

Just to see if an earlier version of rubygems might install for me, I
tried rubygems 1.3.1.  This seemed to install with greater success.
However, when I attempted to do the "gem update --system", the processor
hanged in this case, too.  See below.

 

I tried to clean up newly installed files between different installation
attempts (which I attempted repeatedly), but might have missed some here
and there.

 

Can anyone offer any suggestions how to get rubygems running on my
system?  I'd be happy with ANY version in the past 2 years.

 

-- Bill

 

 

============= Start of installation of rubygems-1.3.4
==========================================

$ ruby setup.rb install

Installing RubyGems

Installing gem executable

Removing old source_cache files

Removing old RubyGems RDoc and ri

Installing rubygems-1.3.4 ri into
/usr/lib/ruby/gems/1.8/doc/rubygems-1.3.4/ri

Installing rubygems-1.3.4 rdoc into
/usr/lib/ruby/gems/1.8/doc/rubygems-1.3.4/rdoc

 

------------------------------------------------------------------------
------

 

Oh-no! Unable to find release notes!

 

------------------------------------------------------------------------
------

 

RubyGems installed the following executables:

        /usr/bin/gem

 

$ gem --debug update --system

Exception `NameError' at
/usr/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:161

- uninitialized constant Gem::Commands::UpdateCommand

Exception `Gem::LoadError' at
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:826 - Could not

 find RubyGem test-unit (>= 0)

 

Updating RubyGems

Exception `Gem::LoadError' at
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:826 - Could not

 find RubyGem sources (> 0.0.1)

<.......  my processor hangs ........>

============= End of installation of rubygems-1.3.4
==========================================

 

============= Start of installation of rubygems-1.3.1
==========================================

$ ruby setup.rb install

mkdir -p /usr/lib/ruby/site_ruby/1.8

mkdir -p /usr/bin

mkdir -p /usr/lib/ruby/site_ruby/1.8/rbconfig

install -c -m 0644 rbconfig/datadir.rb
/usr/lib/ruby/site_ruby/1.8/rbconfig/datadir.rb

mkdir -p /usr/lib/ruby/site_ruby/1.8/rubygems

install -c -m 0644 rubygems/builder.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb

install -c -m 0644 rubygems/command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/command.rb

mkdir -p /usr/lib/ruby/site_ruby/1.8/rubygems/commands

install -c -m 0644 rubygems/commands/build_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/build_command.rb

install -c -m 0644 rubygems/commands/cert_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/cert_command.rb

install -c -m 0644 rubygems/commands/check_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/check_command.rb

install -c -m 0644 rubygems/commands/cleanup_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/cleanup_command.rb

install -c -m 0644 rubygems/commands/contents_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/contents_command.rb

install -c -m 0644 rubygems/commands/dependency_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/dependency_command.rb

install -c -m 0644 rubygems/commands/environment_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/environment_command.rb

install -c -m 0644 rubygems/commands/fetch_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/fetch_command.rb

install -c -m 0644 rubygems/commands/generate_index_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/generate_index_command.rb

install -c -m 0644 rubygems/commands/help_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/help_command.rb

install -c -m 0644 rubygems/commands/install_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb

install -c -m 0644 rubygems/commands/list_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/list_command.rb

install -c -m 0644 rubygems/commands/lock_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/lock_command.rb

install -c -m 0644 rubygems/commands/mirror_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/mirror_command.rb

install -c -m 0644 rubygems/commands/outdated_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/outdated_command.rb

install -c -m 0644 rubygems/commands/pristine_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/pristine_command.rb

install -c -m 0644 rubygems/commands/query_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/query_command.rb

install -c -m 0644 rubygems/commands/rdoc_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/rdoc_command.rb

install -c -m 0644 rubygems/commands/search_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/search_command.rb

install -c -m 0644 rubygems/commands/server_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/server_command.rb

install -c -m 0644 rubygems/commands/sources_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/sources_command.rb

install -c -m 0644 rubygems/commands/specification_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/specification_command.rb

install -c -m 0644 rubygems/commands/stale_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/stale_command.rb

install -c -m 0644 rubygems/commands/uninstall_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/uninstall_command.rb

install -c -m 0644 rubygems/commands/unpack_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/unpack_command.rb

install -c -m 0644 rubygems/commands/update_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb

install -c -m 0644 rubygems/commands/which_command.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/commands/which_command.rb

install -c -m 0644 rubygems/command_manager.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb

install -c -m 0644 rubygems/config_file.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/config_file.rb

install -c -m 0644 rubygems/custom_require.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb

install -c -m 0644 rubygems/defaults.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/defaults.rb

install -c -m 0644 rubygems/dependency.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb

install -c -m 0644 rubygems/dependency_installer.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb

install -c -m 0644 rubygems/dependency_list.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/dependency_list.rb

mkdir -p /usr/lib/ruby/site_ruby/1.8/rubygems/digest

install -c -m 0644 rubygems/digest/digest_adapter.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/digest/digest_adapter.rb

install -c -m 0644 rubygems/digest/md5.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/digest/md5.rb

install -c -m 0644 rubygems/digest/sha1.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/digest/sha1.rb

install -c -m 0644 rubygems/digest/sha2.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/digest/sha2.rb

install -c -m 0644 rubygems/doc_manager.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/doc_manager.rb

install -c -m 0644 rubygems/exceptions.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/exceptions.rb

mkdir -p /usr/lib/ruby/site_ruby/1.8/rubygems/ext

install -c -m 0644 rubygems/ext/builder.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/ext/builder.rb

install -c -m 0644 rubygems/ext/configure_builder.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/ext/configure_builder.rb

install -c -m 0644 rubygems/ext/ext_conf_builder.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/ext/ext_conf_builder.rb

install -c -m 0644 rubygems/ext/rake_builder.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/ext/rake_builder.rb

install -c -m 0644 rubygems/ext.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/ext.rb

install -c -m 0644 rubygems/format.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/format.rb

install -c -m 0644 rubygems/gem_openssl.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/gem_openssl.rb

install -c -m 0644 rubygems/gem_path_searcher.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb

install -c -m 0644 rubygems/gem_runner.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb

install -c -m 0644 rubygems/indexer.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/indexer.rb

install -c -m 0644 rubygems/installer.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb

install -c -m 0644 rubygems/install_update_options.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/install_update_options.rb

install -c -m 0644 rubygems/local_remote_options.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/local_remote_options.rb

install -c -m 0644 rubygems/old_format.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/old_format.rb

mkdir -p /usr/lib/ruby/site_ruby/1.8/rubygems/package

install -c -m 0644 rubygems/package/f_sync_dir.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/package/f_sync_dir.rb

install -c -m 0644 rubygems/package/tar_header.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/package/tar_header.rb

install -c -m 0644 rubygems/package/tar_input.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb

install -c -m 0644 rubygems/package/tar_output.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/package/tar_output.rb

mkdir -p /usr/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader

install -c -m 0644 rubygems/package/tar_reader/entry.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader/entry.rb

install -c -m 0644 rubygems/package/tar_reader.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb

install -c -m 0644 rubygems/package/tar_writer.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/package/tar_writer.rb

install -c -m 0644 rubygems/package.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/package.rb

install -c -m 0644 rubygems/platform.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/platform.rb

install -c -m 0644 rubygems/remote_fetcher.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb

install -c -m 0644 rubygems/requirement.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/requirement.rb

install -c -m 0644 rubygems/require_paths_builder.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/require_paths_builder.rb

install -c -m 0644 rubygems/rubygems_version.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/rubygems_version.rb

install -c -m 0644 rubygems/security.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/security.rb

install -c -m 0644 rubygems/server.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/server.rb

install -c -m 0644 rubygems/source_index.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb

install -c -m 0644 rubygems/source_info_cache.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb

install -c -m 0644 rubygems/source_info_cache_entry.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/source_info_cache_entry.rb

install -c -m 0644 rubygems/specification.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb

install -c -m 0644 rubygems/spec_fetcher.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb

install -c -m 0644 rubygems/test_utilities.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/test_utilities.rb

install -c -m 0644 rubygems/timer.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/timer.rb

install -c -m 0644 rubygems/uninstaller.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/uninstaller.rb

install -c -m 0644 rubygems/user_interaction.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/user_interaction.rb

install -c -m 0644 rubygems/validator.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/validator.rb

install -c -m 0644 rubygems/version.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/version.rb

install -c -m 0644 rubygems/version_option.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/version_option.rb

install -c -m 0644 rubygems.rb /usr/lib/ruby/site_ruby/1.8/rubygems.rb

install -c -m 0644 ubygems.rb /usr/lib/ruby/site_ruby/1.8/ubygems.rb

cp gem /cygdrive/c/DOCUME~1/wcbrenna/LOCALS~1/Temp/gem

install -c -m 0755 /cygdrive/c/DOCUME~1/wcbrenna/LOCALS~1/Temp/gem
/usr/bin/gem

rm /cygdrive/c/DOCUME~1/wcbrenna/LOCALS~1/Temp/gem

install -c -m 0755 /cygdrive/c/DOCUME~1/wcbrenna/LOCALS~1/Temp/gem.bat
/usr/bin/gem.bat

rm /cygdrive/c/DOCUME~1/wcbrenna/LOCALS~1/Temp/gem.bat

rm -f /cygdrive/d/wcb_home/.gem/source_cache

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

Installing rubygems-1.3.1 rdoc into
/usr/lib/ruby/gems/1.8/doc/rubygems-1.3.1/rdoc

 

------------------------------------------------------------------------
------

 

= Announce: RubyGems Release 1.3.0

 

NOTE:  RubyGems 1.1 and 1.2 have problems upgrading when there is no

rubygems-update installed.  You will need to follow the second set of
update

instructions if you see "Nothing to update".

 

Release 1.3.0 fixes some bugs.

 

Bugs fixed:

 

* Disregard ownership of ~ under Windows while creating ~/.gem.  Fixes

  issues related to no uid support under Windows.

* Fix requires for Gem::inflate, Gem::deflate, etc.

* Make Gem.dir respect :gemhome value from config.  (Note: this feature
may be

  removed since it is hard to implement on 1.9.)

* Kernel methods are now private.  Patch #20801 by Stefan Rusterholz.

* Gem::location_of_caller now behaves on Windows.  Patch by Daniel
Berger.

* Silence PATH warning.

 

Deprecation Notices:

 

* Gem::manage_gems will be removed on or after March 2009.

 

For a full list of changes to RubyGems and the contributor for each
change, see

the ChangeLog file.

 

Special thanks to Chad Wooley for backwards compatibility testing and
Luis

Lavena for continuing windows support.

 

== How can I get RubyGems?

 

NOTE:  If you have installed RubyGems using a package system you may
want to

install a new RubyGems through the same packaging system.

 

If you have a recent version of RubyGems (0.8.5 or later), then all

you need to do is:

 

  $ gem update --system   (you might need to be admin/root)

 

NOTE:  RubyGems 1.1 and 1.2 have problems upgrading when there is no

rubygems-update installed.  You will need to follow the second set of
update

instructions if you see "Nothing to update".

 

NOTE: You may have to run the command twice if you have any previosly

installed rubygems-update gems.

 

If you have an older version of RubyGems installed, then you can still

do it in two steps:

 

  $ gem install rubygems-update  (again, might need to be admin/root)

  $ update_rubygems              (... here too)

 

If you don't have any gems install, there is still the pre-gem

approach to getting software ... doing it manually:

 

1. DOWNLOAD FROM: http://rubyforge.org/frs/?group_id=126

2. UNPACK INTO A DIRECTORY AND CD THERE

3. INSTALL WITH:  ruby setup.rb  (you may need admin/root privilege)

 

== To File Bugs

 

The RubyGems bug tracker can be found on RubyForge at:

http://rubyforge.org/tracker/?func=add&group_id=126&atid=575

 

When filing a bug, `gem env` output will be helpful in diagnosing the
issue.

 

If you find a bug where RubyGems crashes, please provide debug output.
You can

do that with `gem --debug the_command`.

 

== Thanks

 

Keep those gems coming!

 

-- Jim & Chad & Eric (for the RubyGems team)

 

 

------------------------------------------------------------------------
------

 

RubyGems installed the following executables:

        /usr/bin/gem

 

If `gem` was installed by a previous RubyGems installation, you may need

to remove it by hand.

 

$ gem --debug update --system

Exception `NameError' at
/usr/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:134-
uninitialized constant Gem::Commands::UpdateCommand

Updating RubyGems

Exception `Gem::LoadError' at
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:636 - Could not find RubyGem
sources (> 0.0.1)

 

Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:243 - No
such file or directory -
/cygdrive/d/wcb_home/.gem/specs/gems.rubyforge.org%80

Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:243 - No
such file or directory -

Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File
exists - /cygdrive

Exception `Errno::EACCES' at /usr/lib/ruby/1.8/fileutils.rb:243 -
Permission denied - /cygdrive/d

Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File
exists - /cygdrive/d/wcb_home

Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File
exists - /cygdrive/d/wcb_home/.gem

Updating rubygems-update

Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:243 - No
such file or directory -
/cygdrive/d/wcb_home/.gem/specs/gems.rubyforge.org%80/quick/Marshal.4.8

Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:243 - No
such file or directory -

Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File
exists - /cygdrive

Exception `Errno::EACCES' at /usr/lib/ruby/1.8/fileutils.rb:243 -
Permission denied - /cygdrive/d

Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File
exists - /cygdrive/d/wcb_home

Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File
exists - /cygdrive/d/wcb_home/.gem

Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File
exists - /cygdrive/d/wcb_home/.gem/specs

Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File
exists - /cygdrive/d/wcb_home/.gem/specs/gems.rubyforge.org%80

<.......  my processor hangs ........>

============= End of installation of rubygems-1.3.1
==========================================

 



More information about the Rubygems-developers mailing list