In order to compile NEST with Boost (I use the docker installation method) I use:
sudo docker run --rm -e LOCAL_USER_ID=`id -u $USER` -v $(pwd):/opt/data -p 8084:8084 nestsim/nest:latest notebook libboost-all-devD
But, when I install NESTML and run the script, I have the same problem.