1

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'.

7
  • are you sure you installed the boost dependency? – nathanael Jul 20 at 14:16
  • Well I didn't install it myself, but if I try 'brew install boost' it tells me it's already installed. – distracted_coder Jul 20 at 14:26
  • okay that was my first and only idea, cause i am not running macos - hope someone else can help – nathanael Jul 20 at 14:44
  • Is there any other info I can provide that might make it easier to diagnose the problem? – distracted_coder Jul 21 at 6:46
  • my guess now is, that your boost version might be too old - maybe this comment on github helps – nathanael Jul 21 at 8:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.