How to fix MacPorts after a Snow Leopard upgrade
When you upgrade to Snow Leopard, there’s a pretty good chance your MacPorts will be broken. The problem, apparently, is due to the switch to x64. The solution is to remove and reinstall everything ports related. The following worked for me.
First, make a list of your installed ports, and then remove them:
port installed > myports.txt
sudo port clean installed
sudo port -f uninstall installed
Clean up any stray files:
sudo rm -rf /opt/local
Download and install the latest disk image of MacPorts for Snow Leopard.
Take a look at your list of formerly installed ports and install what you need. It’s a good idea to just pick the top-level items and let MacPorts handle the dependencies.
sudo port install [item1] … [itemN]
Write a comment