【问题标题】:Mac APE installation error >> configure: error: installation or configuration: C compiler cannot create executablesMac APE 安装错误>>configure: 错误: 安装或配置: C 编译器无法创建可执行文件
【发布时间】:2012-08-24 20:49:49
【问题描述】:

我正在我的 MAC 上安装 APE(Ajax 推送引擎)。但它在安装过程中给了我一个错误,

configure: error: installation or configuration problem: C compiler cannot create executables. 

我的机器上安装了 gcc:gcc -v 给出 'gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)'

如何消除此错误?

【问题讨论】:

  • 您需要查看config.log 文件以了解命令失败的原因。如果不查看该日志的相关部分,就无法知道。

标签: macos gcc-warning ape


【解决方案1】:

正如马特所说,检查config.log。我在 ML 上构建 SpiderMonkey 时遇到了类似的问题,错误结果与配置有关,期望 C 编译器可执行文件被称为 gcc-4.2g++-4.2 在 OSX 中不是这种情况,它们被称为gccg++ 代替。

为了解决我所做的问题:

$ export CC=gcc
$ export CXX=g++
$ ./configure

通过这种方式,它成功了。感谢马特。

【讨论】:

    猜你喜欢
    • 2018-06-08
    • 1970-01-01
    • 1970-01-01
    • 2013-09-23
    • 1970-01-01
    • 2019-02-03
    • 1970-01-01
    • 2020-01-21
    • 1970-01-01
    相关资源
    最近更新 更多