<p>It looks like the <code>boost</code> dependency may be missing or outdated. The <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md#3-install-required-dependencies" rel="nofollow noreferrer">build instructions for OS X</a> in the Bitcoin repository suggest that <code>boost</code> should be installed via homebrew in the third step, “Install Required Dependencies”. If you were missing that step, maybe try following the linked instructions from the top. If you followed every step of the instructions and still got this error, please file a <a href="https://github.com/bitcoin/bitcoin/issues/new?assignees=&amp;labels=Bug&amp;template=bug_report.md&amp;title=" rel="nofollow noreferrer">bug report</a> on the repository.</p>

CC BY-SA 4.0
2022-08-08T13:20:22.800Z
2022-08-08T13:20:22.800Z
Murch
<pre><code>xxxxxxx@xxxx-MacBook-Pro bitcoin % make -j 1
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>

<bitcoind><mac><installation>
When trying to run the make command I get the following error, I am working with M1 Machine for Mac
Ana S
# When trying to run the make command I get the following error, I am working with M1 Machine for Mac

(Asked by: username_0 on 2022-08-08)

xxxxxxx@xxxx-MacBook-Pro bitcoin % make -j 1
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 
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [bitcoind-bitcoind.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

**Tags:** bitcoind, mac, installation


---

## 1 answers

### Answer by username_1 on 2022-08-08. Score: 1

It looks like the `boost` dependency may be missing or outdated. The [build instructions for OS X](https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md#3-install-required-dependencies) in the Bitcoin repository suggest that `boost` should be installed via homebrew in the third step, “Install Required Dependencies”. If you were missing that step, maybe try following the linked instructions from the top. If you followed every step of the instructions and still got this error, please file a [bug report](https://github.com/bitcoin/bitcoin/issues/new?assignees=&labels=Bug&template=bug_report.md&title=) on the repository.


---

