Xcode 4.3.2 macports requirement

Ryan Schmidt ryandesign at macports.org
Wed Apr 18 11:16:17 PDT 2012


On Apr 18, 2012, at 13:03, 许楠 wrote:

> first of all,i'm a chinese guy from mainland china,and please forgive my poor english.
> 
> i've installed the newest version of macports,and i use a hactonish.here is someinformation about my pc.
> 
> mac os x lion 10.7.3
> xcode 4.3.? installed from mac app store
> 
> i've installed openvpn via macports ,but when i tried to install wine,error returned from command line
> 
> Error: Couldn't determine your Xcode version (from '/usr/bin/xcodebuild -version').
> Error: Target org.macports.extract returned: unable to find Xcode
> Error: Failed to install cairo
> 
> i runned xcodebuild
> 
> nanimac:~ xunan$ /usr/bin/xcodebuild -version
> Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path.
> 
> then 
> nanimac:~ xunan$ /usr/bin/xcode-select -version
> xcode-select version 2307.
> 
> so i replaced xcodebuild with xcode-select

Maybe I'm misunderstanding you, but if you're saying that you replaced the xcodebuild program with a copy of the xcode-select program, meaning both programs are now the same program, then you shouldn't have done that. xcodebuild and xcode-select are two different programs; you need both of them. So if that's what you did, then you should restore from your backups or reinstall Xcode.

Once that's done, use xcode-select to select the proper developer directory. See:

https://trac.macports.org/wiki/ProblemHotlist#xcode-select





More information about the macports-users mailing list