我如何在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.