<p>I've been trying to install bitcoind on a new mac (Big Sur 11.4). I followed the instructions in doc/build-osx.md and installed all required dependencies, but when I try to run make, it gives me the following error:</p>
<pre><code>Making all in src
  CXX      bitcoind-bitcoind.o
clang: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
In file included from bitcoind.cpp:14:
In file included from ./interfaces/chain.h:8:
./optional.h:10:10: fatal error: 'boost/optional.hpp' file not found
#include &lt;boost/optional.hpp&gt;
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [bitcoind-bitcoind.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
</code></pre>
<p>Any idea how to fix this?</p>
<p>Edit:
If I run brew install boost, it tells me it's already installed, but typing 'which boost' gives 'boost not found'.</p>

CC BY-SA 4.0
2021-07-20T14:26:27.827Z
Well I didn't install it myself, but if I try 'brew install boost' it tells me it's already installed.
distracted_coder
CC BY-SA 4.0
2021-07-21T06:46:31.267Z
Is there any other info I can provide that might make it easier to diagnose the problem?
distracted_coder
CC BY-SA 4.0
2021-07-22T05:03:38.107Z
Have you followed the instructions at https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md? Is the mac one of the new ones with the M1 chip or an older one with an Intel processor?
Ava Chow
CC BY-SA 4.0
2021-07-22T10:02:11.880Z
Yep, that's the guide that I followed. And the mac is a newer one with an M1 chip.
distracted_coder
<mac><error><installation><make>
unable to install bitcoind (macOS, M1 chip)
distracted_coder
# unable to install bitcoind (macOS, M1 chip)

(Asked by: username_0 on 2021-07-20)

I've been trying to install bitcoind on a new mac (Big Sur 11.4). I followed the instructions in doc/build-osx.md and installed all required dependencies, but when I try to run make, it gives me the following error:

```
Making all in src
  CXX      bitcoind-bitcoind.o
clang: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
In file included from bitcoind.cpp:14:
In file included from ./interfaces/chain.h:8:
./optional.h:10:10: fatal error: 'boost/optional.hpp' file not found
#include <boost/optional.hpp>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [bitcoind-bitcoind.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

```

Any idea how to fix this?

Edit:
If I run brew install boost, it tells me it's already installed, but typing 'which boost' gives 'boost not found'.

**Tags:** mac, error, installation, make

> **Comments:**
> **username_0**: Well I didn't install it myself, but if I try 'brew install boost' it tells me it's already installed.  
> **username_0**: Is there any other info I can provide that might make it easier to diagnose the problem?  
> **username_1**: Have you followed the instructions at https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md? Is the mac one of the new ones with the M1 chip or an older one with an Intel processor?  
> **username_0**: Yep, that's the guide that I followed. And the mac is a newer one with an M1 chip.  

---

## 0 answers

