Opened 11 years ago

Closed 11 years ago

#43442 closed defect (invalid)

Mountain Lion: xcodebuild exists but failed to execute

Reported by: dbh@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.2.1
Keywords: mountainlion Cc:
Port:

Description

I've been through the tickets and wiki but cannot seem to get this sorted.

Upgraded to ML from SL

Installed xcode 4.6.3
installed Command Line Tools
Rebooted

Did:

sudo port -fp uninstall installed
sudo rm -rf \
>     /opt/local \
>     /Applications/DarwinPorts \
>     /Applications/MacPorts \
>     /Library/LaunchDaemons/org.macports.* \
>     /Library/Receipts/DarwinPorts*.pkg \
>     /Library/Receipts/MacPorts*.pkg \
>     /Library/StartupItems/DarwinPortsStartup \
>     /Library/Tcl/darwinports1.0 \
>     /Library/Tcl/macports1.0 \
>     ~/.macports

Installed (from link on MacPorts installation page:
OS X 10.8 Mountain Lion:
MacPorts-2.2.0-10.8-MountainLion.pkg

Then, oddly enough:
port version
Version: 2.2.1

Then:

sudo port install gnuplot
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
--->  Computing dependencies for gnuplot^C------------------------------------------------------------------------------------- 23:10:06
house@The-iMac:~$ xcode-select -print-path
/Applications/Xcode.app/Contents/Developer

sudo xcode-select -switch /Applications/Xcode.app
Password:
------------------------------------------------------------------------------------- 23:21:03
house@The-iMac:~$ xcode-select -print-path
/Applications/Xcode.app/Contents/Developer

Change History (4)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase
Keywords: mountainlion added; Xcode mountain lion removed

Having the latest version of MacPorts after installing an older version of MacPorts is normal, because the installer runs selfupdate at the end. Some may find this peculiar, but it is functioning as intended.

What happens if you run xcodebuild at the command line yourself? What does xcodebuild -version say?

Note that Xcode 5.1.1 is the latest version for Mountain Lion; consider updating to that. Remember to upgrade the command line tools after doing so (in the Downloads section of the Xcode application's Preferences window).

comment:2 Changed 11 years ago by neverpanic (Clemens Lang)

Also try sudo xcodebuild -license.

comment:3 Changed 11 years ago by dbh@…

Ah, Xcode wanted me to agree to the license before anything would work. Done.

Upgraded to 5.1.1

GNUplot now installs.

Closed

comment:4 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: invalid
Status: newclosed

2.3 will check for that and warn you, should it ever happen again.

Note: See TracTickets for help on using tickets.