If you encounter errors like this configure: error: C compiler cannot create executables
, try this command on Terminal:
sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain
You should change XcodeDefault.xctoolchain
and OSX10.10.xctoolchain
tu suit your case.
First result on Google for this problem, and the solution worked well for me.
This isn't Yosemite-specific; use tab-completion to find the latest version of
/usr/include
. Here's an ugly overkill oneliner:sudo ln -s "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/$(ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs | sort | head -n1)/usr/include" /usr/include