Can't build node from source

Followed the instructions to build a node for MacOS: GitHub - algorand/go-algorand: Algorand's official implementation in Go.

When running make install, it can’t find a c++ header:

# github.com/algorand/go-algorand/data/committee/sortition
sortition.cpp:2:10: fatal error: 'boost/math/distributions/binomial.hpp' file not found
make: *** [buildsrc] Error 2

Environment

Happens on current master and v3.2.1-stable.

MacBook Pro, Apple Silicon

I have heard about that issue before, and it’s unique to M1 Macs. The boost package for brew doesn’t add the symlink which is required for gcc to find the header.( unlike the x86 darwin package ).

Given that I don’t have a M1 machine, I won’t be able to provide step by step instruction, but the workaround would be to add the missing symlink.

Ideally, the brew package would get fixed, and the workaround wouldn’t be needed.

2 Likes