Installing latest MacPorts for OS X 10.6

Wednesday, February 16, 2011

I was just about to install MacPorts on my OS X 10.6 system, and downloaded the latest package (1.9.1) from macports.org, only to get a dialog saying my MacPorts version was too old to update, and that I first needed to upgrade to 1.7.1. That didn’t install at all, but I found this snippet while googling around for a solution. This removes all previous versions of MacPorts and its dependencys, so be careful if you’re not sure that you want to do that. Fire up Terminal and type:

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

Then install MacPorts 1.9.1 package again. Worked for me at least. Disclaimer: I am certainly not an expert on this, so your mileage may vary…

Comments are currently closed.

0 comments. Comments are closed for this entry.

Comments are closed.