[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[Ruby Forum] Problem with rubygems installation in Cygwin

Alexey Verkhovsky

10/4/2004 9:28:00 PM

Unanswered question from Ruby Forum
(http://ruby-forum.org/bb/viewtopi...):


I am running a Windows XP box and am trying to get started with Ruby.
I've seen some of the code samples, and I want to get in on the action.
Unfortunately, some of my peripheral knowledge (er.. lack thereof) is
getting in the way.

I am on a Windows XP box running cygwin

CYGWIN_NT-5.1 astrocity 1.5.11(0.116/4/2) 2004-09-04 23:17 i686 unknown
unknown Cygwin

I've downloaded the rubygems-0.8.1 archive. Then...

Code:
$ ruby install.rb

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.

/usr/lib/ruby/1.8/i386-cygwin/digest/md5.so: dlopen, Win32 error 126 -
/usr/lib/ruby/1.8/i386-cygwin
/digest/md5.so (LoadError)
from
/usr/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:10
from
/usr/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__'
from
/usr/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1
from
/usr/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
`require__'
from
/usr/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:58:in `manage_gems'
from install.rb:142:in `install_rb'
from install.rb:148

but...

Code:

$ ls -la /usr/lib/ruby/1.8/i386-cygwin/digest/md5.so
-rwxr-x---+ 1 Jim Users 6144 Dec 25 2003
/usr/lib/ruby/1.8/i386-cygwin/digest/md5.so


So, is my problem something like
http://www.cygwin.com/ml/cygwin/2004-02/msg... (a static vs.
dynamic library issue) or something else?

Any help is much appreciated.



1 Answer

WATANABE Hirofumi

10/5/2004 3:10:00 AM

0

Hi,

Alexey Verkhovsky <alex@verk.info> writes:

> Code:
> $ ruby install.rb
>
> 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.
>
> /usr/lib/ruby/1.8/i386-cygwin/digest/md5.so: dlopen, Win32 error 126 -
> /usr/lib/ruby/1.8/i386-cygwin
> /digest/md5.so (LoadError)

% objdump -p /usr/lib/ruby/1.8/i386-cygwin/digest/md5.so | grep 'DLL Name'
DLL Name: cygruby18.dll
DLL Name: cygcrypto-0.9.7.dll
DLL Name: cygwin1.dll
DLL Name: KERNEL32.dll
DLL Name: cygruby18.dll
It depends on OpenSSL. Install OpenSSL with setup.exe.

--
eban