Executes when compiling httpd under Mac./configure the following error occurred.
Checking for gcc .../applications/xcode.app/contents/developer/toolchains/osx10.9.xctoolchain/usr/bin/cc
Checking whether the C compiler works ... no
Configure:error:in '/users/hufeiyan/ws/httpd-2.2.26′:
Configure:error:c compiler cannot create executables
"Config.log ' For more details"
View Config.log has the following description:
Configure:4480:result:/applications/xcode.app/contents/developer/toolchains/osx10.9.xctoolchain/usr/bin/cc
Configure:4709:checking for C compiler version
configure:4718:/applications/xcode.app/contents/developer/toolchains/osx10.9.xctoolchain/usr/bin/cc–version >&5
./configure:line 4720:/applications/xcode.app/contents/developer/toolchains/osx10.9.xctoolchain/usr/bin/cc:no Such file or directory
configure:4729: $? = 127
configure:4718:/applications/xcode.app/contents/developer/toolchains/osx10.9.xctoolchain/usr/bin/cc-v >& 5
./configure:line 4720:/applications/xcode.app/contents/developer/toolchains/osx10.9.xctoolchain/usr/bin/cc:no Such file or directory
configure:4729: $? = 127
configure:4718:/applications/xcode.app/contents/developer/toolchains/osx10.9.xctoolchain/usr/bin/cc-v >& 5
./configure:line 4720:/applications/xcode.app/contents/developer/toolchains/osx10.9.xctoolchain/usr/bin/cc:no Such file or directory
configure:4729: $? = 127
configure:4718:/applications/xcode.app/contents/developer/toolchains/osx10.9.xctoolchain/usr/bin/cc-qversion >&5
./configure:line 4720:/applications/xcode.app/contents/developer/toolchains/osx10.9.xctoolchain/usr/bin/cc:no Such file or directory
configure:4729: $? = 127
Configure:4749:checking whether the C compiler works
configure:4771:/applications/xcode.app/contents/developer/toolchains/osx10.9.xctoolchain/usr/bin/cc-ddarwin- Dsigprocmask_sets_thread_mask conftest.c >&5
./configure:line 4773:/applications/xcode.app/contents/developer/toolchains/osx10.9.xctoolchain/usr/bin/cc:no Such file or directory
configure:4775: $? = 127
Configure:4813:result:no
Workaround:
code is as follows |
copy code |
sudo ln-s/ applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain//Applications/Xcode.app/Contents /developer/toolchains/osx10.9.xctoolchain |