Could not detect boost libraries when configuring Bitcoin core - Apple M1 Mac Mini 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

&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;
config.log tells me:
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

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=&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;

also didnt help. Any ideas very much appreciated. Thanks
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.