Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing meld on OS X

Tags:

meld

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?

like image 935
Dave Avatar asked May 11 '10 02:05

Dave


People also ask

What is meld Mac?

Meld overview Meld is a visual diff and merge tool targeted at developers. Meld helps you compare files, directories, and version controlled projects. It provides two- and three-way comparison of both files and directories, and has support for many popular version control systems.


1 Answers

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":

  • Go to https://yousseb.github.io/meld/
  • Download DMG file you prefer (e.g. "Download latest DMG" https://github.com/yousseb/meld/releases/download/osx-6/meldmerge.dmg)
  • Install it to your Applications folder

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.

like image 100
Artem Skoretskiy Avatar answered Jan 02 '23 04:01

Artem Skoretskiy