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

<pre><code>../dist/configure --disable-replication --enable-mingw --enable-cxx
make
</code></pre>

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

CC BY-SA 3.0
2014-03-11T15:23:37.720Z
im trying to build this on windows, i dont see a configure file. can someone point out
Syler
CC BY-SA 3.0
2014-06-30T01:53:45.120Z
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!
Austin Burk
CC BY-SA 3.0
2014-02-13T04:18:55.597Z
../dist/configure --enable-cxx
make
this will also do
Khan Shahrukh
CC BY-SA 3.0
2013-12-15T01:11:15.873Z
2013-12-15T01:11:15.873Z
ScripterRon
<p>I've been working on setting up the proper environment to compile litecoin, and have been following the instructions from this:</p>

<p><a href="https://bitcointalk.org/index.php?PHPSESSID=1dl8pkva2oqpjsd3h455k7hrj7&amp;topic=149479.0;all" rel="nofollow noreferrer">https://bitcointalk.org/index.php?PHPSESSID=1dl8pkva2oqpjsd3h455k7hrj7&amp;topic=149479.0;all</a></p>

<blockquote>
  <p>2.2 Berkeley DB: <a href="http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz" rel="nofollow noreferrer">http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz</a></p>
  
  <p>We'll use version 4.8 to preserve binary wallet compatibility.</p>
  
  <p>From a MinGW shell unpack the source archive, configure, edit line 113 of db.h then make:</p>
  
  <p>Code:</p>
</blockquote>

<pre><code>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
</code></pre>

<blockquote>
  <p>after configuring make sure to edit your build_unix/db.h by replacing line 113:</p>
  
  <p>Code:</p>
</blockquote>

<pre><code>typedef pthread_t db_threadid_t;
</code></pre>

<blockquote>
  <p>with</p>
  
  <p>Code:</p>
</blockquote>

<pre><code>typedef u_int32_t db_threadid_t;
</code></pre>

<p>I was all set to do it, but this happened:
<img src="https://i.sstatic.net/LJC4o.jpg" alt="The build_unix folder is empty"></p>

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

<p>So what's the deal?</p>

CC BY-SA 3.0
2013-12-14T22:07:20.940Z
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?
ScripterRon
CC BY-SA 3.0
2013-12-14T22:17:59.373Z
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.
Austin Burk
CC BY-SA 3.0
2013-12-14T22:58:50.993Z
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.
ScripterRon
CC BY-SA 3.0
2013-12-14T23:56:37.747Z
Can I have your link? I tried both mingw and 7zip to open it. I tried the windows zip viewer for a zip version.
Austin Burk
CC BY-SA 3.0
2013-12-15T01:07:23.823Z
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.
ScripterRon
<windows><compiling>
I'm trying to compile bitcoind on Windows but build_unix for db-4.8.30.NC is empty. What do I need to do?
Austin Burk
# I'm trying to compile bitcoind on Windows but build_unix for db-4.8.30.NC is empty. What do I need to do?

(Asked by: username_0 on 2013-12-14)

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

<https://bitcointalk.org/index.php?PHPSESSID=1dl8pkva2oqpjsd3h455k7hrj7&topic=149479.0;all>

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

```
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:
>
> Code:

```
typedef pthread_t db_threadid_t;

```

> with
>
> Code:

```
typedef u_int32_t db_threadid_t;

```

I was all set to do it, but this happened:
![The build_unix folder is empty](https://i.sstatic.net/LJC4o.jpg)

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?

**Tags:** windows, compiling

> **Comments:**
> **username_1**: 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?  
> **username_0**: 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.  
> **username_1**: 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.  
> **username_0**: Can I have your link? I tried both mingw and 7zip to open it. I tried the windows zip viewer for a zip version.  
> **username_1**: 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.  

---

## 1 answers

### Answer by username_1 on 2013-12-15. Score: 3 | Accepted answer

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
make

```

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

> **Comments:**
> **username_3**: ../dist/configure --enable-cxx make this will also do  
> **username_2**: im trying to build this on windows, i dont see a configure file. can someone point out  
> **username_0**: 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!  

---

