mac编译apache时出现 checking whether the C compiler works... no 的解决办法
来源:互联网 发布:百度语音识别api php 编辑:程序博客网 时间:2024/06/01 08:22
在MAC下编译apache时执行 ./configure 出现如下错误。
checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc
checking whether the C compiler works... noconfigure: error: in `/Users/hufeiyan/ws/httpd-2.2.26':
configure: error: C compiler cannot create executables
See `config.log' for more details
查看config.log有如下描述:
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
解决办法:
在命令行执行如下命令:
sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain
OK,再次运行 ./configure 顺利完成配置
- mac编译apache时出现 checking whether the C compiler works... no 的解决办法
- ubuntu curl失败checking whether the C compiler works... no
- NetCDF安装:checking whether the C compiler works... no
- checking whether the C++ compiler works... no
- C compiler cannot create executables checking whether the C compiler works... no
- checking whether the C++ compiler works... no configure: error: in `/root/gperftools-2.1': configure
- Linux下php5.3.6的安装:checking whether libxml build works... no
- 编译x264 出现No working C compiler found.
- 编译x264 出现No working C compiler found.
- linux安装mongo c++ driver,出现Checking for C++ library boost_thread-mt... no的解决办法
- 【编译原理】How Compiler Works?
- 源码编译出现的问题cmake 提示C compiler was not found和Cxx complier was not found解决办法
- win7中用MinGW编译x264出现"No working C compiler found."错误
- Mac Matlab R2014b 解决Mex 出现No supported compiler or SDK was found的问题
- 编译出现C compiler cannot create executables
- nginx 交叉编译 ( checking for C compiler found but is not working )
- Eclipse中的编译Maven工程时出现No compiler is provided问题
- C compiler not work ....in configure checking .,..
- Android ListView实现方法三(自定义适配器)
- 数据持久化-对象归档
- ios学习(五):数据持久化之属性列表(.plist)
- 网购狂欢节背后的技术阅兵
- Jquery-zTree的基本用法-java版本(转)
- mac编译apache时出现 checking whether the C compiler works... no 的解决办法
- LOG4J.PROPERTIES配置详解
- 虚拟机桥接方式上网
- hinernate细节
- A puzzle for me (cookie)
- iOS中ScrollView的属性和方法详解
- 路走远了,就会忘了当初的情。
- 项目拾遗——动态地图准确定位
- Android Hardware Abstraction Layer