为什么我会得到一个"C compiler cannot create executables"(在此之前成功编写 C 代码并编译它)?



这是我在键入时遇到的错误/配置:

checking build system type... x86_64-apple-darwin11.3.0
checking host system type... x86_64-apple-darwin11.3.0
checking target system type... x86_64-apple-darwin11.3.0
checking whether the C compiler works... no
configure: error: in `/opt/ruby-1.9.3-p125':
configure: error: C compiler cannot create executables
See `config.log' for more details

如上所述,我正在尝试编译Ruby源代码。我做了一些研究,但看起来没有人试图在Lion上自己编译代码。我目前正在运行10.7.3 OS X Lion,Macbook Pro。

如果您有Xcode 4.3+,您安装了命令行工具吗?您可以从Xcode的首选项窗格中下载,也可以从这里下载。

相关内容

最新更新