Installing meld on OS X

Dave picture Dave · May 11, 2010 · Viewed 25.7k times · Source

After I got MacPorts installed and did a 'sudo port -v selfupdate', I try to install meld.

The installation just starts to Fetching all kinds of stuff gnome-comoon perl5.8 perl5 pkgconfig ..... this goes on and on.

Is that normal?

Answer

Artem Skoretskiy picture Artem Skoretskiy · Feb 29, 2016

You may want to install it via HomeBrew (already mentioned before):

brew install homebrew/gui/meld

Though you may face stability issues (as I did). So I'd rather recommend to use "Meld for OSX":

We are basically done, but it is not accessible via command line.

Solution:

  • Write a small wrapper to run from Terminal:

    echo -e '#!/bin/sh
    params="$@"
    open -W -a Meld --args $params' | sudo tee /usr/local/bin/meld
    sudo chmod +x /usr/local/bin/meld
    
  • Try (you must use absolute paths though):

    meld /home/a.txt /home/b.txt
    

    Or just run Meld from menu.