【问题标题】:Mac OS X 10.9, Cannot find appropriate C compiler on this system when install cmakeMac OS X 10.9,安装 cmake 时在此系统上找不到合适的 C 编译器
【发布时间】:2013-07-27 14:02:11
【问题描述】:

我正在尝试在 MAC OS X 10.9 中安装 cmake,并得到以下错误日志:

Error when bootstrapping CMake:
Cannot find appropriate C compiler on this system.
Please specify one using environment variable CC.
See cmake_bootstrap.log for compilers attempted.

但我已经在我的操作系统中安装了 gcc:

localhost:cmake-2.8.11.2 markyoung$ gcc --help
Usage: i686-apple-darwin11-llvm-gcc-4.2 [options] file...
Options:
  -pass-exit-codes         Exit with highest error code from a phase
  --help                   Display this information
  --target-help            Display target specific command line options
...

我该如何解决这个问题?

【问题讨论】:

  • 如果您按照邮件中的建议发送到export CC=gccexport CC=clang 会发生什么?
  • cmake_bootstrap.log 解释原因了吗?
  • 其实没什么用处
  • homebrew 提到了 cmake 构建问题和 10.9。 this link 提供了一些细节。

标签: linux macos gcc cmake osx-mavericks


【解决方案1】:

如果您愿意,请使用homebrew。之后:

brew install cmake

为我工作。警告:在此之前我已经通过 brew install gcc48 安装了 gcc-4.8。

【讨论】:

    猜你喜欢
    • 2014-02-12
    • 1970-01-01
    • 2014-04-29
    • 2013-11-02
    • 2013-11-11
    • 2013-11-17
    • 1970-01-01
    • 2011-10-11
    相关资源
    最近更新 更多