gpt4 book ai didi

xcode - 如何在 Mac OS X 10.8/Xcode 4.4 上使用/安装 gcc

转载 作者:行者123 更新时间:2023-12-02 05:51:14 27 4
gpt4 key购买 nike

我已经安装了 Mountain Lion (Mac OS X 10.8),但现在 gcc 似乎不再可用。我还安装了 Xcode 4.4,因此不再有/Developer 目录。

我需要 gcc 用于 mac 端口和 ruby​​ gems(具有 native 扩展)。

Xcode 4.4 是否包含 gcc 或者有没有办法安装 gcc?

最佳答案

更新:

您现在可以从终端运行以下命令:

xcode-select --install
<小时/>

从 Xcode 4.3 开始 - 您现在必须从 Xcode 菜单 > 首选项 > 下载 手动安装命令行工具。

manual install image

或者,还有独立的安装包 for Mountain Lion (10.8)for Mavericks (10.9) .

This package enables UNIX-style development via Terminal by installing command line developer tools, as well as Mac OS X SDK frameworks and headers. Many useful tools are included, such as the Apple LLVM compiler, linker, and Make. If you use Xcode, these tools are also embedded within the Xcode IDE, and can be installed on your system using the Downloads preferences pane within Xcode 4.3 and later. This package requires Mac OS X 10.7.3 or later.

关于xcode - 如何在 Mac OS X 10.8/Xcode 4.4 上使用/安装 gcc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9353444/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com