0

我正在尝试在 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
...

我该如何解决这个问题?

4

1 回答 1

0

如果您愿意,请使用自制软件。在那之后:

brew install cmake

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

于 2013-10-24T22:34:22.203 回答