在没有安装xcode的情况下在mac osx上安装gcc [英] Install gcc on mac osx without installing xcode

查看:152
本文介绍了在没有安装xcode的情况下在mac osx上安装gcc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

有没有办法在mac osx上安装gcc编译器,而没有整个xcode开发怪物?最新的xcode下载是4.5GB,我想要做的就是用gcc编译一些东西。这有点矫枉过正。



当然有更好的方法吗?

[现在支持在OSX XCode命令行工具中]

解决方案

虽然在没有Xcode的情况下安装gcc是绝对有可能的,但似乎没有人将它打包这样一种方式... ...
这就是说,它似乎是你问的主要原因是为了避免大的下载?如果您的操作系统安装了随Mac附带的光盘,则我们可以安装Xcode而无需从头开始下载。

在DVD的根级别应该是可选安装包含Xcode安装程序的文件夹。



编辑:也许有一个办法!

本页链接到系统10.6的gcc二进制文件:

http://hpc.sourceforge.net/


Possible Duplicate:
Is there a way to install gcc in OSX without installing Xcode?

Is there any way to just install the gcc compiler on mac osx without the entire xcode development monstrosity? The latest xcode download is 4.5GB and all I want to do is compile something with gcc. That is a tad bit of overkill.

Surely there is a better way?

[Now this is supported in OSX XCode command line tools]

解决方案

While it is definitely possible to install gcc without Xcode, it seems that nobody packages it in such a way...
That said, it does seem like your main reason for asking is to avoid the large download? If you still have the OS install discs that came with your Mac then we can get Xcode installed without having to download it from scratch.
On the root level of the DVD should be an Optional Installs folder that contains an Xcode installer.

Edit: maybe there is a way after all!
This page links to binaries of gcc for System 10.6:
http://hpc.sourceforge.net/

这篇关于在没有安装xcode的情况下在mac osx上安装gcc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆