OSX 10.10 (yosemite): configure: error: C compiler cannot create executables

Posted on Sat 18 October 2014 in tech

Problem: brew fails with "configure: error: C compiler cannot create executables"

==> Upgrading 1 outdated package, with result:
python3 3.4.2_1
==> Upgrading python3
==> Downloading https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tar.xz
Already downloaded: /Library/Caches/Homebrew/python3-3.4.2.tar.xz
==> ./configure --prefix=/usr/local/Cellar/python3/3.4.2_1 --enable-ipv6 --datar
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in /private/tmp/python3-av3R7L/Python-3.4.2:
configure: error: C compiler cannot create executables
See config.log for more details

Solution: Download and install Xcode 6.1 and the Command line tools (CLT) for OSX 10.10. With the release of Yosemite Xcode 6.1 should show up in the App Store sooner or later. Then a manual download will be unnecessary.