Bug #1668: Error installing ruby gems for 1.9.1 on windows vista
http://redmine.ruby-lang.org/issues/show/1668

Author: Kristian Mandrup
Status: Open, Priority: Normal
Category: core
ruby -v: 1.9.1-p0

I followed the guides at:
http://akitaonrails.com/2009/01/13/the-best-environment-for-rails-on-windows
http://alwaysthecritic.typepad.com/atc/2009/03/install-ruby-191-on-windows.html

Then when trying to install any gem.

My ruby/bin contains the following dlls:
libeay32
msvcrt-ruby191
ssleay32
zlib1

I have a previous ruby 1.8.6 installation, using the one-click installer, but have removed it from my PATH.

I have set the following environment variables:
Ruby_home = C:\Development\ruby-1.9.1
PATH = ...;%Ruby_home%\bin;%Ruby_home%\lib
---

C:\Users\kristian>gem install rails ruby-debug
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems.rb:405: [BUG] Segmentation fault
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]

-- control frame ----------
c:0025 p:---- s:0134 b:0134 l:000133 d:000133 CFUNC  :(null)
c:0024 p:---- s:0132 b:0132 l:000131 d:000131 CFUNC  :new
c:0023 p:0064 s:0128 b:0128 l:000127 d:000127 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems.rb:405
c:0022 p:0066 s:0124 b:0124 l:000123 d:000123 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/remote_fetcher.rb:143
c:0021 p:0186 s:0116 b:0116 l:000115 d:000115 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/spec_fetcher.rb:205
c:0020 p:0128 s:0104 b:0104 l:000093 d:000103 BLOCK  C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/spec_fetcher.rb:173
c:0019 p:---- s:0099 b:0099 l:000098 d:000098 FINISH
c:0018 p:---- s:0097 b:0097 l:000096 d:000096 CFUNC  :each
c:0017 p:0047 s:0094 b:0094 l:000093 d:000093 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/spec_fetcher.rb:165
c:0016 p:0027 s:0088 b:0088 l:000087 d:000087 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/spec_fetcher.rb:116
c:0015 p:0025 s:0080 b:0080 l:000079 d:000079 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/spec_fetcher.rb:62
c:0014 p:0201 s:0072 b:0072 l:000071 d:000071 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/dependency_installer.rb:96
c:0013 p:0175 s:0063 b:0063 l:000062 d:000062 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/dependency_installer.rb:189
c:0012 p:0051 s:0053 b:0053 l:000052 d:000052 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/dependency_installer.rb:210
c:0011 p:0049 s:0048 b:0048 l:000037 d:000047 BLOCK  C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/commands/install_command.rb:86
c:0010 p:---- s:0043 b:0043 l:000042 d:000042 FINISH
c:0009 p:---- s:0041 b:0041 l:000040 d:000040 CFUNC  :each
c:0008 p:0241 s:0038 b:0038 l:000037 d:000037 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/commands/install_command.rb:83
c:0007 p:0071 s:0031 b:0031 l:000030 d:000030 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/command.rb:136
c:0006 p:0194 s:0027 b:0027 l:000026 d:000026 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/command_manager.rb:105
c:0005 p:0013 s:0021 b:0021 l:000020 d:000020 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/command_manager.rb:75
c:0004 p:0089 s:0016 b:0016 l:000015 d:000015 METHOD C:/Development/ruby-1.9.1/lib/ruby/1.
9.1/rubygems/gem_runner.rb:39
c:0003 p:0212 s:0009 b:0009 l:0022b4 d:000fd0 EVAL   C:/Development/ruby-1.9.1/bin/gem.bat
:32
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0022b4 d:0022b4 TOP
---------------------------
-- Ruby level backtrace information-----------------------------------------
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems.rb:405:in `(null)'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems.rb:405:in `new'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems.rb:405:in `gunzip'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/remote_fetcher.rb:143:in `fetch_path'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/spec_fetcher.rb:205:in `load_specs'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/spec_fetcher.rb:173:in `block in list'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/spec_fetcher.rb:165:in `each'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/spec_fetcher.rb:165:in `list'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/spec_fetcher.rb:116:in `find_matching'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/spec_fetcher.rb:62:in `fetch'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/dependency_installer.rb:96:in `find_gems
_with_sources'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/dependency_installer.rb:189:in `find_spe
c_by_name_and_version'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/dependency_installer.rb:210:in `install'

C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/commands/install_command.rb:86:in `block
 in execute'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/commands/install_command.rb:83:in `each'

C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/commands/install_command.rb:83:in `execu
te'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/command.rb:136:in `invoke'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/command_manager.rb:105:in `process_args'

C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/command_manager.rb:75:in `run'
C:/Development/ruby-1.9.1/lib/ruby/1.9.1/rubygems/gem_runner.rb:39:in `run'
C:/Development/ruby-1.9.1/bin/gem.bat:32:in `<main>'

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


----------------------------------------
http://redmine.ruby-lang.org