Tagged: gcc

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

- by admin

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 !

« All tags