in reply to Re: Installing DB_File on Windows
in thread Installing DB_File on Windows

I think you're right but i can't find libdb.a file on my system. db.h header file is there but i have full install of Berkeley DB and check whole disk for libdb.a with no result.

Replies are listed 'Best First'.
Re^3: Installing DB_File on Windows
by syphilis (Archbishop) on Oct 05, 2009 at 09:54 UTC
    I think you're right but i can't find libdb.a file on my system

    It's quite possible that the import lib that shipped with the msi package that you installed had a different name - eg is there a 'db.lib' ? If you can identify the import lib (irrespective of the name it has), then simply create a copy of it called 'libdb.a' in a location where it will be found, and MinGW should have no trouble linking to it.

    Once that warning about Note (probably harmless): No library found for -ldb goes away, you're a chance to succeed.

    Cheers,
    Rob
Re^3: Installing DB_File on Windows
by Anonymous Monk on Oct 05, 2009 at 10:51 UTC
    Where did you install it?

    What I did last time was download zip version, unzip, start msys and

    cd db-4.7.25/build_unix sh ../dist/configure make
    Then switch back to cmd.exe
    cd ../perl/DB_File perl -pi.orig -e "s!^(INCLUDE|LIB)\s.*!$1\t= ../../build_unix/!" confi +g.in perl Makefile.PL dmake test dmake install