Original address: http://blog.lyhdev.com/2012/07/os-x-macports.html
Mac OS X 10.8 Mountain Lion is officially unveiled, and the price of the $590 yuan is cheap, and the stability of this version is believed to have made many of the users of Snow Leopard and Lion user mind.
After upgrading OS X, MacPorts (the developers will need) also needs to be upgraded.
Unfortunately, the macports does not have an aching way of ascending.
MacPorts migration steps from: https://trac.macports.org/wiki/Migration
The first thing to do is to remove all the old kits before removing them and save the kit.
- List Installed Kits
PORT-QV Installed > Myports.txt
- Removing an installed Kit
sudo port-f uninstall installed
- Clear files
sudo port clean All
Next, you need to update MacPorts Base, that is, to reinstall the installation on the installation page: http://www.macports.org/install.php need to be aware that XCode is a macports required development tool, using AppStore Download the latest version of XCode, you will need to xcode/preferences/downloads "command line tools". Next is the kit checklist for the Myports.txt, which will be re-installed.
(RPM) OS X macports re-install notes