Skip to content

Instantly share code, notes, and snippets.

@ladrift
Forked from chrisyip/c_works_no.md
Created October 17, 2015 11:19
Show Gist options
  • Save ladrift/816ce3ced980de352363 to your computer and use it in GitHub Desktop.
Save ladrift/816ce3ced980de352363 to your computer and use it in GitHub Desktop.
Fix Yosemite issues

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.

If you encounter errors like this fatal error: 'stdlib.h' file not found on Yosemite and Xcode 6.0.1, your /usr/include/ is probably missing.

Try this command on Terminal:

sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include /usr/include

Notice the MacOSX10.9.sdk, you may want MacOSX10.10.sdk for 10.10 final.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment