Tag Archives: command line tools

Fix “OSX10.9.xctoolchain/usr/bin/cc: No such file or directory”

You may get this error while compiling something on the command line with Mac OS X:

/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc: No such file or directory


First you have to be sure Xcode Toolchain is installed. If you are not sure just install it and accept the EULA:

sudo xcode-select --install
sudo xcodebuild -license

Then go to /Applications/Xcode.app/Contents/Developer/Toolchains and create a symbolic link from XcodeDefault.xctoolchain folder:

cd /Applications/Xcode.app/Contents/Developer/Toolchains/
sudo ln -s XcodeDefault.xctoolchain OSX10.9.xctoolchain

That should fix it.