在MacBook上安装flink时出现警告“系统上没有C编译器”

时间:2013-08-24 12:02:57

标签: macos gcc apt-get cc fink

要获得支持,我在MacBook Pro上安装fink。执行bootstrap脚本后,我得到以下错误日志

Checking package... looks good (fink-0.35.1).
Checking system... i386-apple-darwin12.4.0
This system is supported and tested.
Distribution: 10.8
Architecture: x86_64
Checking cc... not found.
ERROR: There is no C compiler on your system. Make sure that the Developer
Tools are installed.

我在/ usr / bin /目录中找不到gcc。

阅读here后,我猜x-code为gcc编译器提供默认支持。

任何人都知道我应该得到什么来支持 fink ,或者是否有任何其他方式来获得 apt-get 的支持。

1 个答案:

答案 0 :(得分:1)

  • 首先,您需要安装 Xcode 及其命令行工具才能获得gcc编译器
  • 确保您的/usr/bin目录
  • 中有可用的gcc版本
  • cc
  • 中安装的gcc创建符号链接/usr/bin