Various problems after installing ruby 1.9.1


#1

Team,
I unzipped ruby 1.9.1 where ruby 1.8.6 was located and since then I am
having some problems and therefore will appreciate some help.
Please notice that I still CAN run my ruby scripts, at least the few I
tried.

C:>ruby -v
ruby 1.9.1 (2008-10-28 revision 19983) [i386-mswin32]

C:>irb
Generates msg: This application has failed to start because readline.dll
was
not found. Re-installing may fix this problem.

But irb actually works after clicking OK on the dialog.

If I try to install any gem (I tried irb & wxruby) I get one or both of
the
following two errors, one after the other, in a dialog box:
Also, if I run gem (for example gem unpack) I get the second error
(zlib)
listed below:

This application has failed to start because SSLEAY32.dll was not
found.
Re-installing may fix this problem.
This application has failed to start because zlib.dll was not found.
Re-installing may fix this problem.

C:>gem install irb
C:/ruby/lib/ruby/1.9.1/rubygems/package.rb:10:in require': 126: The specified module could not be found. - C:/ruby/lib/ruby/1.9.1/i386-mswin32/zlib.so (LoadError) from C:/ruby/lib/ruby/1.9.1/rubygems/package.rb:10:in<top
(required)>’
from C:/ruby/lib/ruby/1.9.1/rubygems/format.rb:9:in require' from C:/ruby/lib/ruby/1.9.1/rubygems/format.rb:9:in<top
(required)>’
from C:/ruby/lib/ruby/1.9.1/rubygems/installer.rb:11:in
require' from C:/ruby/lib/ruby/1.9.1/rubygems/installer.rb:11:in<top
(required)>’
from
C:/ruby/lib/ruby/1.9.1/rubygems/dependency_installer.rb:3:in
require' from C:/ruby/lib/ruby/1.9.1/rubygems/dependency_installer.rb:3:in<top (required)>’
from
C:/ruby/lib/ruby/1.9.1/rubygems/commands/install_command.rb:4:in
require' from C:/ruby/lib/ruby/1.9.1/rubygems/commands/install_command.rb:4:in<top
(required)>’
from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:140:in
require' from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:140:inrescue in load_and_instantiate’
from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:132:in
load_and_instantiate' from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:65:in[]’
from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:118:in
find_command' from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:104:inprocess_args’
from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:75:in
run' from C:/ruby/lib/ruby/1.9.1/rubygems/gem_runner.rb:39:inrun’
from C:/ruby/bin/gem.bat:32:in `’

C:>gem install wxruby
C:/ruby/lib/ruby/1.9.1/rubygems/package.rb:10:in require': 126: The specified module could not be found. - C:/ruby/lib/ruby/1.9.1/i386-mswin32/zlib.so (LoadError) from C:/ruby/lib/ruby/1.9.1/rubygems/package.rb:10:in<top
(required)>’
from C:/ruby/lib/ruby/1.9.1/rubygems/format.rb:9:in require' from C:/ruby/lib/ruby/1.9.1/rubygems/format.rb:9:in<top
(required)>’
from C:/ruby/lib/ruby/1.9.1/rubygems/installer.rb:11:in
require' from C:/ruby/lib/ruby/1.9.1/rubygems/installer.rb:11:in<top
(required)>’
from
C:/ruby/lib/ruby/1.9.1/rubygems/dependency_installer.rb:3:in
require' from C:/ruby/lib/ruby/1.9.1/rubygems/dependency_installer.rb:3:in<top (required)>’
from
C:/ruby/lib/ruby/1.9.1/rubygems/commands/install_command.rb:4:in
require' from C:/ruby/lib/ruby/1.9.1/rubygems/commands/install_command.rb:4:in<top
(required)>’
from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:140:in
require' from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:140:inrescue in load_and_instantiate’
from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:132:in
load_and_instantiate' from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:65:in[]’
from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:118:in
find_command' from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:104:inprocess_args’
from C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:75:in
run' from C:/ruby/lib/ruby/1.9.1/rubygems/gem_runner.rb:39:inrun’
from C:/ruby/bin/gem.bat:32:in `’

C:>

Thank you for any advise!


#2

2009/1/13 Ruby S. removed_email_address@domain.invalid:

I unzipped ruby 1.9.1 where ruby 1.8.6 was located and since then I am

THIS is the first error. I suggest to restore the old directory
contents and reinstall in another place.

robert


#3

On Wed, Jan 14, 2009 at 5:50 AM, Robert K.
removed_email_address@domain.invalidwrote:

Robert,
Thank you for your reply!
I actually completely removed the old version.
This time I unzipped 1.9.1 on its own directory and ensure that
environment
variables were properly set.
The version is properly returned as in:
C:>ruby -v
ruby 1.9.1 (2008-10-28 revision 19983) [i386-mswin32]

But I am still getting the same errors.
As you know, Ruby 1.9.1 is a zipped version, which I unzipped on
ruby-1.9.1.
I then proceeded to update the path and class variables to reflect
ruby-1.9.1.
Any help will be appreciated.

Thank you


#4

On Jan 14, 5:04 pm, Ruby S. removed_email_address@domain.invalid wrote:

variables were properly set.
Thank you

Hello “Ruby S.”

You’re getting those errors since you’re missing the binaries required
to zlib, openssl and readline.

Those binaries exist in One-Click installer because the package
developers decided to bundle those to ease the users life.

There is no official package for 1.9.1 of One-Click Installer, so you
will need to manually hunt down (download and extract).

Use as reference the following:

http://stackoverflow.com/questions/390897/installing-ruby-1-8-7-and-other-stuffs-manually
http://www.garbagecollect.jp/ruby/mswin32/en/documents/

HTH,