Can't compile source code on mac
Solution 1:
You need to convince configure that there are more c compilers than gcc. Try:
export CC=clang
Solution 2:
In general, having Xcode installed isn't enough to get some open source projects to compile.
The actual error you are seeing is probably listed in config.log
since the test it makes is failing on OS X. It's hard to guess if that's because it doesn't like clang/llvm which is what your "gcc
" binary actually is.
Some boilerplate things to try:
xcode-select --install
That should issue an error like "xcode-select: error: command line tools are already installed, use "Software Update" to install updates" when you have all the tools actually installed. If you don't have the tools and include files installed, you should get a prompt to install the tools and have to possibly type an admin user/password.
Next, you could dig into the actual specific error log or you could try getting a gcc compiler instead of using Apple's llvm.
brew install gcc
That would get a gnu gcc-5
installed in the /usr/local/bin
path and if that's used over Apple's /usr/bin/gcc
you might not have the build error in the first place.