When Mac compiles Apache, it appears checking whether the C compiler works ... no solution

Source: Internet
Author: User

Execute when compiling Apache 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

Solution:

At the command line, execute the following command:

sudo ln-s/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain//Applications/Xcode.app /contents/developer/toolchains/osx10.9.xctoolchain

OK, run again./configure successfully completed configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.