Resolve Mac OS X compilation httpd appears checking whether the C compiler works ... no method

Source: Internet
Author: User

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

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.