<p>The easiest way to build on a Mac is to use macports. It is much easier with the latest git HEAD, which includes the nice new Qt GUI.</p>

<p>This should work with latest git:</p>

<ol>
<li>Download and install Apple's Xcode developer SDK stuff (I assume you already have)</li>
<li>Install MacPorts from <a href="http://www.macports.org/">http://www.macports.org/</a></li>
<li>sudo port install qt4-mac boost db48 dbus openssl</li>
<li>From the top of the bitcoin source tree:  cd contrib/miniupnpc; sudo port install</li>
<li>At the top of the bitcoin source tree, run:  qmake; make</li>
</ol>

<p>You should end up with the Bitcoin Qt.app.</p>

<p>To compile bitcoind, edit src/makefile.osx and set:</p>

<pre><code>DEPSDIR=/opt/local
INCLUDEPATHS= \
 -I"$(DEPSDIR)/include" \
 -I"$(DEPSDIR)/include/db48"

LIBPATHS= \
 -L"$(DEPSDIR)/lib" \
 -L"$(DEPSDIR)/lib/db48"
</code></pre>

<p>Updating makefile.osx and the build instructions is on my TODO list for the 0.5 release (if you want to volunteer to submit a patch....)</p>

CC BY-SA 3.0
2011-11-21T11:22:01.950Z
or, just run `sudo port install bitcoin`
o0'.
CC BY-SA 3.0
2012-02-17T03:55:39.277Z
`sudo port install bitcoin` seemed to fail for me https://gist.github.com/debb28925f72f99b3f1f
Brian Armstrong
CC BY-SA 3.0
2012-11-03T03:42:34.143Z
I've added an answer to another question for how to build bitcoind on OSX 10.8 with Homebrew: http://bitcoin.stackexchange.com/questions/3672/trouble-compiling-bitcoind-on-osx-with-homebrew/5253#5253
Colin Dean
CC BY-SA 3.0
2011-09-30T21:31:34.533Z
2011-09-30T21:31:34.533Z
gavinandresen
<p>Following the instructions in build-osx.txt (which seem sadly out of date) leaves me without a file named libboost_system.a.</p>

<p>Here is how I built boost:</p>

<pre><code>% cd boost_1_42_0
% ./bootstrap.sh
% ./bjam architecture=combined address-model=32_64 macosx-version=10.6 \
    macosx-version-min=10.6 link=static runtime-link=static -a \
    --toolset=darwin --prefix=/Users/`whoami`/bitcoin/deps install
</code></pre>

<p>I had to edit the makefile.osx to add some include paths, but I could not find libboost_system.a. What am I missing?</p>

<p>Also, I needed to compile OpenSSL because OS X only comes with dynamically linked libraries.</p>

CC BY-SA 3.0
2011-09-09T08:13:20.727Z
Sorry I cant help with Mac but be warned I have herd of their machines overheating when mining due to only average cooling implementations (style over functionality). This wouldnt be an issue if you had a server case mind you ;)
MaxSan
CC BY-SA 3.0
2011-09-10T01:28:31.593Z
I believe you need to download the [Boost C++ libraries](http://www.boost.org/), but I can't help you further...
nmat
<development><bitcoind>
What are the steps in building bitcoind on Mac OS X 10.6?
sad_mac
# What are the steps in building bitcoind on Mac OS X 10.6?

(Asked by: username_0 on 2011-09-09)

Following the instructions in build-osx.txt (which seem sadly out of date) leaves me without a file named libboost_system.a.
Here is how I built boost:
% cd boost_1_42_0
% ./bootstrap.sh
% ./bjam architecture=combined address-model=32_64 macosx-version=10.6 \
    macosx-version-min=10.6 link=static runtime-link=static -a \
    --toolset=darwin --prefix=/Users/`whoami`/bitcoin/deps install

I had to edit the makefile.osx to add some include paths, but I could not find libboost_system.a. What am I missing?
Also, I needed to compile OpenSSL because OS X only comes with dynamically linked libraries.

**Tags:** development, bitcoind

> **Comments:**
> **username_1**: Sorry I cant help with Mac but be warned I have herd of their machines overheating when mining due to only average cooling implementations (style over functionality). This wouldnt be an issue if you had a server case mind you ;)  
> **username_2**: I believe you need to download the [Boost C++ libraries](http://www.boost.org/), but I can't help you further...  

---

## 1 answers

### Answer by username_3 on 2011-09-30. Score: 7

The easiest way to build on a Mac is to use macports. It is much easier with the latest git HEAD, which includes the nice new Qt GUI.
This should work with latest git:

Download and install Apple's Xcode developer SDK stuff (I assume you already have)
Install MacPorts from http://www.macports.org/
sudo port install qt4-mac boost db48 dbus openssl
From the top of the bitcoin source tree:  cd contrib/miniupnpc; sudo port install
At the top of the bitcoin source tree, run:  qmake; make

You should end up with the Bitcoin Qt.app.
To compile bitcoind, edit src/makefile.osx and set:
DEPSDIR=/opt/local
INCLUDEPATHS= \
 -I"$(DEPSDIR)/include" \
 -I"$(DEPSDIR)/include/db48"

LIBPATHS= \
 -L"$(DEPSDIR)/lib" \
 -L"$(DEPSDIR)/lib/db48"

Updating makefile.osx and the build instructions is on my TODO list for the 0.5 release (if you want to volunteer to submit a patch....)

> **Comments:**
> **username_4**: or, just run `sudo port install bitcoin`  
> **username_5**: `sudo port install bitcoin` seemed to fail for me https://gist.github.com/debb28925f72f99b3f1f  
> **username_6**: I've added an answer to another question for how to build bitcoind on OSX 10.8 with Homebrew: http://bitcoin.stackexchange.com/questions/3672/trouble-compiling-bitcoind-on-osx-with-homebrew/5253#5253  

---

