Mac – How fix broken Macports installation after manual deletion of app

macports

I had GIMP installed via sudo port install gimp. This created the GIMP.app in /Applications/MacPorts/. I accidentally deleted it manually (or with AppCleaner, not sure), so every time Macports scans installed binaries, it warns

Warning: Error parsing file /Applications/MacPorts/GIMP.app/Contents/MacOS/GIMP: Error opening or reading file

This is also what happens when I try to install again. I uninstalled and cleaned the port, but installing again does not work; the .app is not created and the above warning shows. How do I fix it?

Best Answer

I am not quite sure, but after I purged the unused dependencies of gimp, the error went away.