Newbie question. How to install a new package?

Go to http:://www.ruby-lang.org/~eban/ruby/binaries/mingw/ext/. You should
see a mingw compiled binary of bdb.

Jamey.

···

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

You have pre-compiled version of bdb for cygwin at

http://www.ruby-lang.org/~eban/ruby/binaries/cygwin/ext/

Doh. I had hoped for a native win32 port … oh well, I’ll see what I
can do with it.

TVM.


Giuseppe “Oblomov” Bilotta

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

CRIBBSJ wrote:

Go to http:://www.ruby-lang.org/~eban/ruby/binaries/mingw/ext/. You should
see a mingw compiled binary of bdb.

Got it, but still tought luck with the Ruby part … it says it can’t
find the lib, even when I specify the path.

···


Giuseppe “Oblomov” Bilotta

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

Got it, but still tought luck with the Ruby part ... it says it can't
find the lib, even when I specify the path.

What is the error message ?

If this is something like this :

pigeon% ruby -r./bdb -e 1
0: libdb-4.1.so: cannot open shared object file: No such file or directory
- ./bdb.so (LoadError)
pigeon%

this means that ruby can't find the Berkeley DB library (libdb-4.1 in this
case)

Guy Decoux

ts wrote:

Got it, but still tought luck with the Ruby part … it says it can’t
find the lib, even when I specify the path.

What is the error message ?

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

c:\langs\ruby\lib\ruby\site_ruby\1.6\i586-mswin32
^^^^^^^^^^^^^
(Ruby installation folder)

(where the other .so s are)

Next, I unpacked the RAA package bdb-0.3.3.tar.gz into my temp folder
and executed

C:\TEMP\bdb-0.3.3>extconf.rb
C:\TEMP\bdb-0.3.3\extconf.rb: Entering directory src' checking for db_version() in -ldb-4... no checking for db_version() in -ldb4... no checking for db_version() in -ldb3... no checking for db_version() in -ldb2... no checking for db_version() in -ldb... extconf.rb:36: libdb not found (RuntimeError) from extconf.rb:31:in catch’
from extconf.rb:31
no
C:\TEMP\bdb-0.3.3\extconf.rb: Leaving directory `src’

What am I doing wrong?

···


Giuseppe “Oblomov” Bilotta

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

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

The .so that you have is the result of the compilation of bdb

C:\TEMP\bdb-0.3.3>extconf.rb
C:\TEMP\bdb-0.3.3\extconf.rb: Entering directory `src'
checking for db_version() in -ldb-4... no
checking for db_version() in -ldb4... no
checking for db_version() in -ldb3... no
checking for db_version() in -ldb2... no
checking for db_version() in -ldb... extconf.rb:36: libdb not found
(RuntimeError)
        from extconf.rb:31:in `catch'
        from extconf.rb:31

Here you are trying to compile bdb and it's saying that it can't find the
library Berkeley DB from Sleepycat, i.e. you must have Berkeley DB because
bdb is just the ruby interface to this library.

Guy Decoux

ts wrote:

Here you are trying to compile bdb and it’s saying that it can’t find the
library Berkeley DB from Sleepycat, i.e. you must have Berkeley DB because
bdb is just the ruby interface to this library.

I see. And where do I get it?

···


Giuseppe “Oblomov” Bilotta

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

I see. And where do I get it?

     Oracle Berkeley DB Downloads

Guy Decoux