// /mac-os-x-lion-configure-error-c-compiler-cannot-create-executables

Mac OS X Lion: configure: error: C compiler cannot create executables

After Xcode installation and trying to build mc I've got: configure: error: C compiler cannot create executables Google offers to install Xcode correctly (this is a different story however) or to...

After Xcode installation and trying to build mc I've got:
configure: error: C compiler cannot create executables

Google offers to install Xcode correctly (this is a different story however) or to reinstall it. Hmmm. Good idea but in my case the following simple action solved the issue: symlinks for compilers - that's all ! KISS
sudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2

sudo ln -s /usr/bin/llvm-g++-4.2 /usr/bin/g++-4.2

Voila !
IT-Digest AI Assistant