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

command-line-tools

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.

You might also like

Password protect a Location, LocationMatch or VirtualHost in Apache (XAMPP and Mac OS X)
Protecting a Location or VirtualHost in Apache is very similar to protecting a folder as I explained...

Fix “No such file or directory: httpd: could not open error log file /…/${APACHE_LOG_DIR}/site.log”
If you get an error like this in the Apache2 error log:No such file or directory: httpd: could not...

Install collada-dom library in Ubuntu 10.04, 10.11, 11.04, 11.10 and 12.04
I wanted to install collada-dom to add support for DAE files on OpenSceneGraph. I used the SVN from 2011/03/12...

Install collada-dom library in Ubuntu 10.04, 10.11, 11.04, 11.10 and 12.04
I wanted to install collada-dom to add support for DAE files on OpenSceneGraph. I used the SVN from 2011/03/12...

  1. This fixed my problem. Thank you!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.