Installing Boost on macOS High Sierra (10.13.2)

Assuming you have Homebrew installed already:

  1. Launch Terminal
  2. brew install boost” (without the quotes). Notice errors. Try updating brew by doing a ‘brew update’. Failures.  Notice by looking at /Users/<userid>/Library/Logs/Homebrew/boost/01.bootstrap.sh that “brew” is at version 0.95 on my machine. Research brew and see it’s on version 1.4.0. Reinstall Brew as though it’s never been installed (even though it is). Notice install says success despite printing a couple of errors during the install. Use “sudo rm /usr/local/share/man/man1/brew.1” and “sudo rm /usr/local/share/doc/homebrew” and re-install brew: /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” to fix.
  3. Retry “brew install boost”.  Success! And brew has installed the latest Boost (1.66.0); under the old version of brew it was trying to install version Boost 1.59.0.

Leave a Reply