Homebrew El Capitan

  

Question or issue on macOS:

I just updated from Yosemite to El Capitan and it has broken one of my C++ programs which was relying on Boost. Whenever I try to compile, I get these errors:

Homebrew

I’ve been compiling it with the correct flags and it worked perfectly before:

I’ve followed the home-brew instructions to chown /usr/local, run brew doctor and brew update, even brew reinstall boost. I’ve also checked and timer.hpp is present in /usr/local/include/boost.

Homebrew El Capitan
  • Oct 22, 2015 推奨方法:El Capitanへアップグレードする前にHomebrewを入れてしまう. If you don't already have homebrew installed, do that first, so you don't have to deal with SIP issues. Post Upgrade to El Capitan, with Homebrew & Ruby.md.
  • Installing Homebrew on Mac OS X prior to El Capitan (that is Yosemite, Mavericks and others) used to be a breeze. But with a new change in OS X El Capitan called SIP - installing Homebrew has become a bit complicated. You need not worry, I have got you covered. There are two parts to this tutorial.

Due to SIP restriction, the old HomeBrew (Migrated from Yosemite or older macOS) does not work well on El Capitan (and newer). After installing homebrew's openssh on El Capitan, ssh-agent no longer seemed to work (in the sense that after using ssh-add to cache a passphrase, I still got a system prompt when trying to ssh). This seemed to be fixed by the instructions I found at the url below (my version is functionally the same but uses PlistBuddy to edit the plist).

Update Ran: clang++ -E -x c++ – -v < /dev/null

How to solve this problem?

El Capitan Theatre Hollywood Ca

Solution no. 1:

You should install the Xcode Command Line tools with xcode-select --install to get a version of clang that searches /usr/local by default. Otherwise, you’re using the versions provided by Xcode proper, which only search the OS X SDK paths. (/usr/bin/gcc and /usr/bin/g++ both invoke clang and are not actually versions of gcc.)

Capitan

Solution no. 2:

I had the same problem when I upgraded to El Capitan. I solved this problem reinstalling Boost with brew.

If you don’t have brew installed, you can install it with

Then, install boost

Homebrew Mac El Capitan

Hope this helps!