我如何在OSX Lion上为Xcode安装其他软件包以允许MacPorts工作 [英] How do i install additional packages for Xcode on OSX Lion to allow MacPorts to work

查看:81
本文介绍了我如何在OSX Lion上为Xcode安装其他软件包以允许MacPorts工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装MacPorts时会抱怨 未安装Xcode,或者已取消选择UNIX Development(10.5+)或命令行支持(10.4)的情况下安装了Xcode."

When I try and install MacPorts it complains 'Xcode is not installed, or was installed with UNIX Development (10.5+) or Command Line Support (10.4) deselected.'

我确实从Appstore安装了Xcode,所以我想我只需要安装这些额外的部件,但是如何安装?

I do have Xcode installed from the Appstore so I guess I just have to install these extra parts but how ?

我已经在Stack Overflow上阅读了几个问题,但是我认为答案必须过时,因为它们对我来说没有意义,我没有可以重新安装的Xcode dmg,并且看不到任何有用的东西在/Developer中,或者在Xcode本身中的任何首选项中.

Ive read a couple of questions on Stack Overflow about this but I think the answers must be outdated as they do notmake sense for me, I do not have an Xcode dmg I can reinstall from, and I can't see anything useful in /Developer either, or any preferences within Xcode itself.

出于使用Macports的目的,我只希望使用Xcode,所以我不熟悉它.

I only want Xcode for the purposes of using Macports so I'm not familiar with it.

推荐答案

您可能从Mac App Store中获得了Xcode 4.1.在这种情况下,您没有安装Xcode 4.1.但是,现在您的Applications目录中有一个Xcode安装程序.

You probably got Xcode 4.1 from the Mac App Store. In that case, you haven't got Xcode 4.1 installed. However, you now have an Xcode installer in your Applications directory.

无论如何,Spotlight都应该找到它.

Spotlight should find it in any case.

这篇关于我如何在OSX Lion上为Xcode安装其他软件包以允许MacPorts工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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