# Newbie question. How to install a new package?

I could be totally wrong, but if you put the .so (which is the library
already compiled) you then just do a ‘require’ in your script. You don’t
have to worry about grabbing the source to bdb and compiling.

However, if the .so you grabbed was compiled using mingw, I’m not sure if it
will work with the msvc-compiled version of ruby.

Jamey.

···

-----Original Message-----
From: Giuseppe Bilotta [mailto:bilotta78@hotpop.com]
Sent: Thursday, August 22, 2002 9:16 AM
To: ruby-talk@ruby-lang.org
Subject: Re: Newbie question. How to install a new package?

This is what I did. I got the .so and put it under

c:\langs\ruby\lib\ruby\site_ruby\1.6\i586-mswin32

What am I doing wrong?

Giuseppe “Oblomov” Bilotta

Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS

CRIBBSJ wrote:

I could be totally wrong, but if you put the .so (which is the library
already compiled) you then just do a ‘require’ in your script. You don’t
have to worry about grabbing the source to bdb and compiling.

Bingo! You’re totally right!

However, if the .so you grabbed was compiled using mingw, I’m not sure if it
will work with the msvc-compiled version of ruby.

Bingo again

Rats.

···

Giuseppe “Oblomov” Bilotta

Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS

Hi,

Giuseppe Bilotta bilotta78@hotpop.com writes:

However, if the .so you grabbed was compiled using mingw, I’m not sure if it
will work with the msvc-compiled version of ruby.

Bingo again

Unzip and copy mingw32-ruby16.dll to c:\ruby\bin, then it will work.

···

eban

WATANABE Hirofumi wrote:

Hi,

Giuseppe Bilotta bilotta78@hotpop.com writes:

However, if the .so you grabbed was compiled using mingw, I’m not sure if it
will work with the msvc-compiled version of ruby.

Bingo again

Unzip and copy mingw32-ruby16.dll to c:\ruby\bin, then it will work.

Thanks. I’ll give it a try when I’m back online. (Not that I like
adding more DLLs … after all, that’s the reason I didn’t get the
CygWin port of Ruby …)

···

Giuseppe “Oblomov” Bilotta

Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS

WATANABE Hirofumi wrote:

Unzip and copy mingw32-ruby16.dll to c:\ruby\bin, then it will work.

(Take two).

Thank you VERY much! It’s an excellent thing, since it solves the
problem of having to find the “correctly compiled” version of each
package each time.

I think this ought to be added to the Andy’s installer.

···

Giuseppe “Oblomov” Bilotta

Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS