I've been working on setting up the proper environment to compile litecoin, and have been following the instructions from this:


2.2 Berkeley DB: http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz

We'll use version 4.8 to preserve binary wallet compatibility.

From a MinGW shell unpack the source archive, configure, edit line 113 of db.h then make:


cd /c/deps/

tar xvfz db-4.8.30.NC.tar.gz

cd db-4.8.30.NC/build_unix

../dist/configure --disable-replication --enable-mingw --enable-cxx

after configuring make sure to edit your build_unix/db.h by replacing line 113:


typedef pthread_t db_threadid_t;



typedef u_int32_t db_threadid_t;

I was all set to do it, but this happened: The build_unix folder is empty

I've tried getting db-4.8.30.NC from multiple sources, but no luck—the build_unix folder is always empty.

So what's the deal?

  • I just downloaded Berkeley DB from the link and had no problems. The db-4.8.30NC.tar.gz is 21.7MB. Is this the size of your file? Commented Dec 14, 2013 at 22:07
  • I have no problem downloading the file; can you tell me what's inside your build_unix directory? I only have an .IGNORE_ME file. Commented Dec 14, 2013 at 22:17
  • There are 793 files, one of which is .IGNORE_ME. There is also a .libs subdirectory. Sounds like your tarball wasn't unpacked correctly or it was truncated. Commented Dec 14, 2013 at 22:58
  • Can I have your link? I tried both mingw and 7zip to open it. I tried the windows zip viewer for a zip version. Commented Dec 14, 2013 at 23:56
  • I mislead you because I have already built Berkely DB. I went back and looked at the .tar.gz file again and it does contain just the .IGNORE_ME file. You just need to run the configure and make commands to create all of the files in the directory. Commented Dec 15, 2013 at 1:07

1 Answer 1


The build_unix directory contains just the .IGNORE_ME file in the distribution. The directory is populated by the make command.

../dist/configure --disable-replication --enable-mingw --enable-cxx

You do not need to edit db.h in the latest distribution since they have already corrected the typedef.

  • ../dist/configure --enable-cxx make this will also do Commented Feb 13, 2014 at 4:18
  • im trying to build this on windows, i dont see a configure file. can someone point out
    – Syler
    Commented Mar 11, 2014 at 15:23
  • I can't believe I missed this answer. I'll see if I still have that stuff on my laptop, maybe I can get it going when I have time! Commented Jun 30, 2014 at 1:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.