I know there are a few questions like this on the stack already, but currently I'm facing issues with a compilation. I've tried an official guide from the github for mac os, but end up with a lot of errors. First of all, I always get this kind of errors:

aclocal: error: aclocal: file '/usr/local/share/aclocal/introspection.m4' does not exist

and other files from aclocal.

If you have an experience, and know how to setup, or know any guides, please share share. Thanks in advance :)

  • Did you install all pre-requisites while following the guide? Please provide a link to the guide you're using. – Dan Bolser Aug 18 '17 at 15:19
  • Have you installed all of the dependencies? Have you followed there instructions: github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md? – Andrew Chow Aug 19 '17 at 0:36
  • Yes, I've followed this guide step by step, all pre-requisites installed as well. ./autogen.sh was throwing alot of aclocal errors, a lot of files not found – d123546 Aug 19 '17 at 1:56

On a Mac Pro with MacOS Sierra 10.12.6 I got a clean compilation by following the instructions in doc/build-osx.md.

The sequence of commands is:

1) First install Xcode and HomeBrew by executing (in Terminal)

xcode-select --install

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

2) Then install required libraries with

brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config protobuf qt libevent python3

(note: I added python3 otherwise there would be errors during "make check")

3) Download and compile

git clone https://github.com/bitcoin/bitcoin
cd bitcoin
make check
| improve this answer | |
  • --c++11 not necessary anymore on Macos – Luca Rocchi Sep 13 '19 at 18:38

Searching aclocal: error: aclocal: file on google yields https://github.com/jashkenas/backbone/issues/3335

the last comment yields


brew doctor
brew prune
| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.