My Profile Photo

rubycoloredglasses


I'm Jason, a web applications developer in the San Francisco Bay area.


Issues with MacPorts After Upgrading to OS X Lion

I realized this morning that I was having dependency issues with ImageMagick on my Mac, which I installed using MacPorts. I had recently upgraded to Mac OS X Lion, so it made sense that I needed to update the software to resolve the issues, much like I had when I upgraded to Snow Leopard.

I found this article that provided steps for migrating MacPorts for Lion, but I kept getting this error when I tried to uninstall all the packages:

warning: Failed to execute portfile from registry for apache2
@2.2.17_1+preforkmpm too many nested evaluations (infinite loop?)
Warning: Failed to execute portfile from registry for apache2
@2.2.17_1+preforkmpm too many nested evaluations (infinite loop?)
Warning: Failed to execute portfile from registry for apache2
@2.2.17_1+preforkmpm too many nested evaluations (infinite loop?)
Warning: Failed to execute portfile from registry for apache2
@2.2.17_1+preforkmpm too many nested evaluations (infinite loop?)

I searched and searched for a solution, and even tried to uninstall apache2 @2.2.17_1+preformkmpm, but it told me that apache2 @2.2.17_1+preformkmpm depends on itself, and that I should uninstall it. Obviously that wasn’t possible.

Finally I found the migration guide provided by the MacPorts website, which instructed me to install the new MacPorts for OS X Lion before removing and reinstalling the packages. I downloaded the DMG file for MacPorts (MacPorts-2.0.3-10.7-Lion), installed it, and then the packages uninstalled without any issues.