Aapo Lehtinen wrote:
> Hi
>
> Has anyone successfully compiled ruby 1.9 (stable snapshot or 1.9.1-p0)
> on OpenBSD? Compiling fails with:
>
> $ make
> compiling Win32API
> compiling bigdecimal
> compiling curses
> compiling dbm
> gcc -shared  -fPIC -o ../../.ext/x86_64-openbsd4.5/dbm.so dbm.o -L.
> -L../.. -L.  -Wl,-E    -ldb  -lm   -lc
> /usr/bin/ld: cannot find -ldb
> collect2: ld returned 1 exit status
> *** Error code 1

<..>

> Current, but I don't think that is the issue.
> So, can I get advice to work this out?
>
> Aapo Lehtinen

Hello,

You didn't specify -L/usr/local/lib in your compilation flags (which is
where libdb.so.* resides, and which is why you can't find it). You
should add /usr/local/include as extra include directory, and
/usr/local/lib as extra library directory when running the ./configure
script.

Cheers,
--
Stephane LAPIE, EPITA SRS, Promo 2005
"Even when they have digital readouts, I can't understand them."
--MegaTokyo

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]

Reply via email to