Sean's Musings as a Service

Sean's Musings as a Service

MacPorts not working after upgrading to Mavericks

  • Published:
  • categories: osx
  • tags: macports, mavericks, os-x

Been using MacPorts for installing my *nix software on OS X happily for a few months, made the jump to Mavericks last weekend and realized that it broke my macports. So it looks like you need to update to a new version of macports via the download and install on top of it as the port selfupdate command will not work for a 10.x version bump.

sgwilbur@gura:~$ sudo port version 
Version: 2.2.0
Follow on error, now after updating to 2.2.1 I still get errors attempting to run:
sgwilbur@gura:~$ sudo port upgrade outdated
--->  Building ncurses
Error: for port ncurses returned: command execution failed
Please see the log file for port ncurses for details:
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:

Turns out this requires and update to the xcode cli tools that was not updated automatically, check out this macports ticket #40843

sgwilbur@gura:/opt/local$ xcrun --show-sdk-version
sgwilbur@gura:/opt/local$ xcode-select --install
xcode-select: note: install requested for command line developer tools

At this point you are prompted with a dialog to either try and update or view the updates in the app store, I tried to get the update once or twice whilst I was moving around and potentially dropped the connections, once I got settled I just went to the app store and updated XCode and not suprisingly..

sgwilbur@gura:~$ sudo port version 
Version: 2.2.1
sgwilbur@gura:/opt/local$ xcrun --show-sdk-version

Now it works when you try and upgrade outdated

sgwilbur@gura:/opt/local$ sudo port upgrade outdated

Back to happy state!