Project

General

Profile

Actions

Bug #1668

closed

Error installing ruby gems for 1.9.1 on windows vista

Added by mainster (Kristian Mandrup) almost 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
ruby -v:
1.9.1-p0
[ruby-core:23950]

Description

=begin
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 `'

[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.
=end


Related issues 1 (0 open1 closed)

Related to Backport191 - Bug #1657: Windows XP segmentation fault error Ruby 1.9.1 versionClosed06/19/2009Actions
Actions #1

Updated by mainster (Kristian Mandrup) almost 15 years ago

=begin
Turns out the fix is here:
http://blog.orangecabin.com/2009/05/install-ruby-1-9-on-windows-using-zip-binary/

Download the file
First you download the 1.9 package from http://www.ruby-lang.org/en/downloads/
Choose “Ruby 1.9 xxx binary” instead of “Ruby xxx Installer”.

Install it
Just Unpack the zip to c:\ruby.
Then add c:\ruby\bin to windows PATH.
Open a windows command console and type
gem update --system
Oops, it is broken! The binary is missing some dll files.

Let us fix it
zlib

Download zlib windows binary from
http://gnuwin32.sourceforge.net/packages/zlib.htm

unzip the package, then find a file named “zlib1.dll”.
Copy “zlib1.dll” to your ruby\bin directory AND rename it to zlib.dll
What the heck?! Why renaming it? Because ruby source code reference the dll as zlib.dll. It is common to use alias like this on Linux. Ruby source was coded on Linux.

openssl

Download openssl windows binary from
http://gnuwin32.sourceforge.net/packages/openssl.htm
Unzip it.
Find “libeay32.dll”, copy to ruby\bin. Don’t rename it.
Find “libssl32.dll”, copy to ruby\bin and rename it to ssleay32.dll

readline

Download readline windows binary from
http://gnuwin32.sourceforge.net/packages/readline.htm
Unzip it.
Find “readline5.dll”, copy to ruby\bin and rename it to readline.dll

Done

That is all. Now type
gem update --system
then
gem install rails

It works :)

Would be nice if these renamed DLLs were included with the ruby binary zip and also included a small install note for windows.
=end

Actions #2

Updated by luislavena (Luis Lavena) almost 15 years ago

=begin
On Sun, Jun 21, 2009 at 6:56 AM, Kristian Mandrup wrote:

Would be nice if these renamed DLLs were included with the ruby binary zip and also included a small install note for windows.

How to install the binary installations:

http://www.garbagecollect.jp/ruby/mswin32/en/documents/install.html

Too bad there is no link to that page in ruby-lang.org

--
Luis Lavena
AREA 17

Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

=end

Actions #3

Updated by naruse (Yui NARUSE) over 14 years ago

  • Status changed from Open to Closed

=begin
usa's package doesn't have zlib and some libraries.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0