在不安装Xcode的情况下将GCC安装到Mac OS X Leopard [英] Installing GCC to Mac OS X Leopard without installing Xcode

查看:170
本文介绍了在不安装Xcode的情况下将GCC安装到Mac OS X Leopard的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将gcc安装到Mac OS X Leopard,并使用MacPorts从源代码编译一些软件。正如 http://www.macports.org/install.php 所建议的,我已经注册为Apple开发人员。现在我必须下载Xcode开发者工具,但它似乎是巨大的。对于gcc和一些头文件(主要是用于控制台应用程序),真的需要这么大的下载(3.5GB或1GB)吗?是否有一个更小的下载(可能在其他网站),这将工作?我是否按照MacPorts网站的要求找到正确的下载( Xcode Developer Tools )?



我不需要IDE,I不需要任何iOS相关软件,我不需要大的SDK,我不想做任何GUI编程。



我没有安装磁盘。



有类似的问题是否有方法可以在不安装Xcode的情况下在OSX中安装gcc?。我的问题是不同的,因为我不介意下载和安装Xcode的部分以获得gcc,只要它相当大,例如300 MB未压缩。这可能吗?



http://developer.apple.com/devcenter/mac/index.action 我找到了下载链接 http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2__final/xcode_3 .2.5_and_ios_sdk_4.2_final.dmg ,这是一个3.5GB的下载。基于下面的一些答案,我注意到Xcode 3.2.5适用于Snow Leopard,我需要Leopard的Xcode 3.1.4(1GB),我可以从 http://connect.apple.com/ (标题为 Downloads和ADC Program Assets )注册并登录后,单击下载/开发工具,然后找到 Xcode 3.1.4开发工具。下载链接是 http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/download?path=%2FDeveloper_Tools%2Fxcode_3.1.4_developer_tools%2Fxcode314_2809_developerdvd.dmg

解决方案

如果在系统还原磁盘上没有 Xcode OS X或作为硬盘驱动器上的可选安装程序,则需要为Leopard下载相应的 Xcode 软件包。 Xcode 3.2.5 仅适用于Snow Leopard OS X 10.6。对于10.5,最近的 Xcode 3.1.4 (我相信)这是一个993MB的下载。登录后,您应该可以在Developer Connection网站的开发人员下载和ADC程序资产部分找到它(您可能必须搜索一下才能找到)。注意Apple提供的GCC有许多Apple开发的增强功能,特别是在多架构支持领域,特别是在一些开源项目中, Python,依赖于。你或许可以用一个香草海湾合作委员会来做事情,但是值得你花时间和麻烦来绕开,测试和猜测?


I'd like to install gcc to Mac OS X Leopard, and compile some software from source using MacPorts. As http://www.macports.org/install.php has suggested, I've registered as an Apple developer. Now I have to download the Xcode developer tools, but it seems to be enormous. Is such a big download (3.5GB or 1GB) really necessary just for gcc and some header files (mostly for console applications)? Is there a smaller download (possibly on some other site) which would work? Did I find the proper download (Xcode Developer Tools), as required by the MacPorts website?

I don't need an IDE, I don't need any iOS-related software, I don't need big SDKs, I don't want to do any GUI programming.

I don't have an install disk.

There was a similar question Is there a way to install gcc in OSX without installing Xcode? . My question is different, because I wouldn't mind downloading and istalling parts of Xcode to get gcc, as long as it's reasonably large, say 300 MB uncompressed. Is that possible?

At http://developer.apple.com/devcenter/mac/index.action I've found the download link http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2__final/xcode_3.2.5_and_ios_sdk_4.2_final.dmg , which is a 3.5GB download. Based on some answers below, I noticed that Xcode 3.2.5 is for Snow Leopard, and I need Xcode 3.1.4 (1GB) for Leopard, which I can get from http://connect.apple.com/ (titled Downloads and ADC Program Assets) after registration and logging in, clicking on the section Downloads / Developer Tools, then finding Xcode 3.1.4 Developer Tools. The download link is http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/download?path=%2FDeveloper_Tools%2Fxcode_3.1.4_developer_tools%2Fxcode314_2809_developerdvd.dmg .

解决方案

If you don't have Xcode on a system restore disk, retail copy of OS X, or as an optional installer on your hard drive, you will need to download the appropriate Xcode package for Leopard. Xcode 3.2.5 is only for Snow Leopard, OS X 10.6. For 10.5, the most recent Xcode is 3.1.4 (I believe) which is a 993MB download. When logged in, you should find it in your Developer Download and ADC Program Assets section of the Developer Connection website (you may have to search a bit to find that, though).

Note the Apple-supplied GCC has a number of Apple-developed enhancements, particularly in the area of multi-architecture support, that some open-source projects, in particular, Python, depend on. You may be able to get things to work with a vanilla GCC but is it worth your time and hassle to hack around and test and guess?

这篇关于在不安装Xcode的情况下将GCC安装到Mac OS X Leopard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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