That sounds awfully microsoftish and totally un-mingw-ish

Maybe you should compile libdb yourself using your mingw toolkig, it works for me

Or if you DuckDuckGo

Install_DB_File_on_Strawberry_Perl

How to install DB_File on Strawberry Perl

Download and install the Oracle/Sleepycat libdb MSI:

berkeley-db db-5.2.36.msi

Go to the Berkeley DB directory:

e.g. C:\Program Files\Oracle\Berkeley DB 4.6.21

Copy the include directory to \strawberry\c\include\db:

Copy the lib\libdb46.lib file to \strawberry\c\lib\libdb.a:

Comment out two typedefs in \strawberry\c\include\db\db.h

--- db.h Wed Oct 03 16:23:20 2007 +++ db.h Fri Apr 04 19:13:28 2008 @@ -115,7 +115,7 @@ #ifdef _WIN64 typedef u_int64_t uintptr_t; #else -typedef u_int32_t uintptr_t; +/*typedef u_int32_t uintptr_t;*/ #endif /* @@ -128,7 +128,7 @@ #ifdef _WIN64 typedef int64_t ssize_t; #else -typedef int32_t ssize_t; +/*typedef int32_t ssize_t;*/ #endif /*

Go to the DB_File distribution directory:

edit config.in to update the locations and DB name:

INCLUDE = \strawberry\c\include\db LIB = \strawberry\c\lib DBNAME = -ldb

Run Makefile.PL, make and make test as normal:


In reply to Re^5: Problems with the installation of DB_File in WindowsXP by Anonymous Monk
in thread Problems with the installation of DB_File in WindowsXP by ayanbiz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.