Berkeley DB for MinGW

From Carboogle

  1. Be sure you have setup your MinGW environment correctly
  2. Download Berkeley DB at http://www.oracle.com/technology/products/berkeley-db/db/index.html. Version db-4.5.20 compiles, but not db-4.6.19 because of a checking of socklen_t in sys/socket.h which we do not have under MinGW.
  3. Unzip and execute:
cd db-4.5.20/build_unix/
../dist/configure --enable-mingw LIBCSO_LIBS=-lwsock32 LIBXSO_LIBS=-lwsock32
make
make install

Precompiled binaries can be downloaded here

NB: it install by default into /usr/local. In my environment i mounted /usr/local to my /local folder to separate built programs to the MinGW environment.

Mycila.com

Mycila projects

Other projects

ports

articles

lessons