Thursday, January 31, 2013

MacPorts broken after OS X upgrade

XCode command line tools will be removed when upgrading Mac OS X to Mountain Lion. This causes the port command in MacPorts to exit and return the following error message:
Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin'
To re-install command line tools open Xcode, Select menu "Xcode->Preferences", go to tab "Downloads" and click on the Install button to download and install the command line tools. When installation is complete, port command will work as expected.

Note; an upgrade of Mac OS X will also remove the X11 package. This needs to be re-installed too. Navigate to to find a download of X11.

No comments: