<p>On a Mac Pro with MacOS Sierra 10.12.6 I got a clean compilation by following the instructions in <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md" rel="nofollow noreferrer"><code>doc/build-osx.md</code></a>.</p>

<p>The sequence of commands is:</p>

<p>1) First install Xcode and HomeBrew by executing (in <a href="https://www.wikihow.com/Open-a-Terminal-Window-in-Mac" rel="nofollow noreferrer">Terminal</a>)</p>

<pre><code>xcode-select --install

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" &lt; /dev/null 2&gt; /dev/null
</code></pre>

<p>2) Then install required libraries with</p>

<pre><code>brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config protobuf qt libevent python3
</code></pre>

<p>(note: I added python3 otherwise there would be errors during "make check")</p>

<p>3) Download and compile</p>

<pre><code>git clone https://github.com/bitcoin/bitcoin
cd bitcoin
./autogen.sh
./configure
make
make check
</code></pre>

CC BY-SA 4.0
2019-09-13T18:38:31.237Z
--c++11 not necessary anymore on Macos
Luca Rocchi
CC BY-SA 3.0
2017-09-20T13:24:50.610Z
2017-09-20T13:54:10.457Z
2017-09-20T13:54:10.457Z
Danielik
<p>Searching <code>aclocal: error: aclocal: file</code> on google yields <a href="https://github.com/jashkenas/backbone/issues/3335" rel="nofollow noreferrer">https://github.com/jashkenas/backbone/issues/3335</a></p>

<p>the last comment yields </p>

<p><a href="https://stackoverflow.com/a/26748352/6557621">https://stackoverflow.com/a/26748352/6557621</a></p>

<pre><code>brew doctor
brew prune
</code></pre>

CC BY-SA 3.0
2017-10-20T14:34:20.440Z
2017-10-20T14:34:20.440Z
MCCCS
<p>I know there are a few questions like this on the stack already, but currently I'm facing issues with a compilation. I've tried an official guide from the github for mac os, but end up with a lot of errors.
First of all, I always get this kind of errors:</p>

<pre><code>aclocal: error: aclocal: file '/usr/local/share/aclocal/introspection.m4' does not exist
</code></pre>

<p>and other files from aclocal.</p>

<p>If you have an experience, and know how to setup, or know any guides, please share share. Thanks in advance :)</p>

CC BY-SA 3.0
2017-08-19T00:36:24.250Z
Have you installed all of the dependencies? Have you followed there instructions: https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md?
Ava Chow
CC BY-SA 3.0
2017-08-19T01:56:05.660Z
Yes, I've followed this guide step by step, all pre-requisites installed as well. ./autogen.sh was throwing alot of aclocal errors, a lot of files not found
d123546
CC BY-SA 3.0
2017-08-18T15:19:02.607Z
Did you install all pre-requisites while following the guide? Please provide a link to the guide you're using.
Dan Bolser
<bitcoin-core><bitcoind><compiling>
How to compile sources on MAC OS in 2017?
d123546
# How to compile sources on MAC OS in 2017?

(Asked by: username_0 on 2017-08-18)

I know there are a few questions like this on the stack already, but currently I'm facing issues with a compilation. I've tried an official guide from the github for mac os, but end up with a lot of errors.
First of all, I always get this kind of errors:
aclocal: error: aclocal: file '/usr/local/share/aclocal/introspection.m4' does not exist

and other files from aclocal.
If you have an experience, and know how to setup, or know any guides, please share share. Thanks in advance :)

**Tags:** bitcoin-core, bitcoind, compiling

> **Comments:**
> **username_2**: Did you install all pre-requisites while following the guide? Please provide a link to the guide you're using.  
> **username_1**: Have you installed all of the dependencies? Have you followed there instructions: https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md?  
> **username_0**: Yes, I've followed this guide step by step, all pre-requisites installed as well. ./autogen.sh was throwing alot of aclocal errors, a lot of files not found  

---

## 2 answers

### Answer by username_3 on 2017-09-20. Score: 3

On a Mac Pro with MacOS Sierra 10.12.6 I got a clean compilation by following the instructions in doc/build-osx.md.
The sequence of commands is:
1) First install Xcode and HomeBrew by executing (in Terminal)
xcode-select --install

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

2) Then install required libraries with
brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config protobuf qt libevent python3

(note: I added python3 otherwise there would be errors during "make check")
3) Download and compile
git clone https://github.com/bitcoin/bitcoin
cd bitcoin
./autogen.sh
./configure
make
make check

> **Comments:**
> **username_4**: --c++11 not necessary anymore on Macos  

---

### Answer by username_5 on 2017-10-20. Score: 0

Searching aclocal: error: aclocal: file on google yields https://github.com/jashkenas/backbone/issues/3335
the last comment yields 
https://stackoverflow.com/a/26748352/6557621
brew doctor
brew prune


---

