in reply to Installing DB_File on Windows

http://cpansearch.perl.org/src/PMQS/DB_File-1.820/README says you have to edit http://cpansearch.perl.org/src/PMQS/DB_File-1.820/config.in

Replies are listed 'Best First'.
Re^2: Installing DB_File on Windows
by Gangabass (Vicar) on Oct 05, 2009 at 09:44 UTC

    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.

      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
      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