<p>Problem solved. Rosetta 2 was missing on the new system I set up. If anyone else runs into the same problem:</p>
<pre><code>softwareupdate --install-rosetta
</code></pre>
<p>does the trick. Thanks to @AlgorithmicRisk on Twitter for pointing this out.</p>

CC BY-SA 4.0
2021-05-04T17:06:46.060Z
FYI fanquake has put up some cross compiled (minus Qt) binaries using depends for Apple M1 hardware here: https://github.com/fanquake/build_artifacts/releases/tag/m1_test
Michael Folkson
CC BY-SA 4.0
2021-04-04T16:53:24.427Z
2021-04-04T16:53:24.427Z
Knut Karnapp
<p>I had the same issue and it turns out that my system was missing the Boost library.</p>
<p>Install it using this(on wsl): sudo apt-get install libboost-all-dev
Then it should work.</p>

CC BY-SA 4.0
2023-02-08T20:08:27.873Z
2023-02-08T20:08:27.873Z
Ayush Singh
<p>I´m trying to install Bitcoin from source on an Apple M1 Mac Mini (Big Sur 11.2.3) and Im getting this when running</p>
<pre><code>./configure --prefix=$PWD/depends/arm-apple-darwin20.3.0
</code></pre>
<p>&quot;We could not detect the boost libraries (version 1.58.0 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.&quot;</p>
<p>config.log tells me:</p>
<pre><code>configure:32586: checking for boostlib &gt;= 1.58.0 (105800)
configure:32618: g++ -std=c++17 -c -g -O2 -I/opt/homebrew/opt/libffi/include -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -DMAC_OSX -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -DPROVIDE_FUZZ_MAIN_FUNCTION  conftest.cpp &gt;&amp;5
conftest.cpp:73:10: fatal error: 'boost/version.hpp' file not found
#include &lt;boost/version.hpp&gt;
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
configure:32618: $? = 1
</code></pre>
<p>I have boost installed via homebrew in /opt/homebrew/Cellar/boost
(Version 1.75.0) and I did try</p>
<pre><code>export BOOST_ROOT=/opt/homebrew/Cellar/boost
</code></pre>
<p>before building, but keep getting the same result.</p>
<pre><code>echo 'export PATH=&quot;/opt/homebrew/opt/icu4c/bin:$PATH&quot;' &gt;&gt; ~/.zshrc
echo 'export PATH=&quot;/opt/homebrew/opt/icu4c/sbin:$PATH&quot;' &gt;&gt; ~/.zshrc
export LDFLAGS=&quot;-L/opt/homebrew/opt/icu4c/lib&quot;
export CPPFLAGS=&quot;-I/opt/homebrew/opt/icu4c/include&quot;
</code></pre>
<p>also didnt help. Any ideas very much appreciated. Thanks</p>

<mac><compiling>
Could not detect boost libraries when configuring Bitcoin core - Apple M1 Mac Mini
Knut Karnapp
# Could not detect boost libraries when configuring Bitcoin core - Apple M1 Mac Mini

(Asked by: username_0 on 2021-04-03)

I´m trying to install Bitcoin from source on an Apple M1 Mac Mini (Big Sur 11.2.3) and Im getting this when running
./configure --prefix=$PWD/depends/arm-apple-darwin20.3.0

"We could not detect the boost libraries (version 1.58.0 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option."
config.log tells me:
configure:32586: checking for boostlib >= 1.58.0 (105800)
configure:32618: g++ -std=c++17 -c -g -O2 -I/opt/homebrew/opt/libffi/include -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -DMAC_OSX -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -DPROVIDE_FUZZ_MAIN_FUNCTION  conftest.cpp >&5
conftest.cpp:73:10: fatal error: 'boost/version.hpp' file not found
#include 
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
configure:32618: $? = 1

I have boost installed via homebrew in /opt/homebrew/Cellar/boost
(Version 1.75.0) and I did try
export BOOST_ROOT=/opt/homebrew/Cellar/boost

before building, but keep getting the same result.
echo 'export PATH="/opt/homebrew/opt/icu4c/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/opt/homebrew/opt/icu4c/sbin:$PATH"' >> ~/.zshrc
export LDFLAGS="-L/opt/homebrew/opt/icu4c/lib"
export CPPFLAGS="-I/opt/homebrew/opt/icu4c/include"

also didnt help. Any ideas very much appreciated. Thanks

**Tags:** mac, compiling


---

## 2 answers

### Answer by username_0 on 2021-04-04. Score: 1

Problem solved. Rosetta 2 was missing on the new system I set up. If anyone else runs into the same problem:
softwareupdate --install-rosetta

does the trick. Thanks to @AlgorithmicRisk on Twitter for pointing this out.

> **Comments:**
> **username_1**: FYI fanquake has put up some cross compiled (minus Qt) binaries using depends for Apple M1 hardware here: https://github.com/fanquake/build_artifacts/releases/tag/m1_test  

---

### Answer by username_2 on 2023-02-08. Score: -1

I had the same issue and it turns out that my system was missing the Boost library.

Install it using this(on wsl): sudo apt-get install libboost-all-dev
Then it should work.


---

