I install OS X Yosemite and now i have a huge problem with gcc 4.9.1 compiler. I hope some one can help me please.
I try to compile my program and i have the warning
I had a similar issue when building things from source, and it was because I forgot to install the updated command line tools after upgrading to Yosemite and xcode 6.1. Try this in your command line:
xcode-select --install
That will download and install the command line tools and may fix your problem.
This was enough for me, and it doesn't require any symlink:
export CC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
After that, just run the command as usual.
I had this issue, installed Xcode cli tools (xcode-select --install
), and still had issues. I'd upgraded from Yosemite to Mojave, and uninstalling an older version of the compiler worked for me:
brew uninstall apple-gcc42
Hope this helps someone!
This solve my problem: I link gcc with /Applications//Xcode.app/Contents/Developer/usr/bin/gcc
cd /usr/local/bin
ln -s /Applications//Xcode.app/Contents/Developer/usr/bin/gcc gcc