views:

727

answers:

2

I found that other people too have had trouble in installing Meld to Mac by MacPorts.

I run

sudo port install meld

I get

sudo port install meld  
 --->  Activating shared-mime-info @0.60_0
Error: Target org.macports.activate returned: Image error: /opt/local/bin/update-mime-database already exists and does not belong to a registered port.  Unable to activate port shared-mime-info.
Error: The following dependencies failed to build: py25-gnome gconf gtk2 shared-mime-info orbit2 libidl gnome-vfs desktop-file-utils gnome-mime-data libbonobo libbonoboui libglade2 libgnome esound audiofile libgnomecanvas libart_lgpl libgnomeui gnome-icon-theme hicolor-icon-theme icon-naming-utils p5-xml-simple p5-xml-namespacesupport p5-xml-sax gnome-keyring libtasn1 py25-gtk py25-cairo py25-numpy py25-nose py25-gobject py25-orbit
Error: Status 1 encountered during processing.

How can you install Meld to Mac?

+1  A: 

Somehow that file already exists, probably from a bad uninstall or upgrade.

If you force the install it probably won't break anything.

sudo port install --force meld
rspeed
It's actually the shared-mime-info dependency that's having the issue. Only that one should be forced.
Kevin Ballard
I get the error: Error: install does not accept --force
Masi
+3  A: 

As rspeed said, you probably had a bad install or upgrade that created that file. Alternately, you installed something outside of macports into the /opt/local tree (though I'm not sure how you would have ended up doing that). I recommend just doing a force activate of the shared-mime-info port, then trying to reinstall meld.

sudo port activate -f shared-mime-info
sudo port install meld
Kevin Ballard
@Kevin: I get the error: Error: activate does not accept --force
Masi
Sorry, there's no long option for force, rspeed's comment confused me and I didn't bother looking it up ;) Just use -f instead. You should also put it before the action, as in `sudo port -f activate shared-mime-info`
Kevin Ballard