Skip to content

Instantly share code, notes, and snippets.

@p1nox
Last active June 13, 2023 16:24
Show Gist options
  • Save p1nox/6102015 to your computer and use it in GitHub Desktop.
Save p1nox/6102015 to your computer and use it in GitHub Desktop.
Using meld on Mac

Using Meld merging tool on Mac

There are two ways of installing meld on osx (May 2023), using brew and .dmg package (from @yousseb). Since I found https://yousseb.github.io/meld/, I've installed it with .dmg package, but having macOS Ventura Version 13.4 (22F66) in place, it's not even starting for me. So I tried brew installation, and the application is working as expected, including symlink to start it from the terminal.

brew install --cask meld

# set meld as your default git mergetool
git config --global merge.tool meld

Requires: macOS >= 10.13 meld has been officially discontinued upstream. It may stop working correctly (or at all) in recent versions of macOS.


Previous docs


Troubleshooting:

  • If meld doesn't start from terminal, try this, modify the /usr/local/Caskroom/meld/3.19.2-r6,osx-15/meld.wrapper.sh script installed by brew to the following:
#!/bin/sh
rm -rf ~/Library/Saved\ Application\ State/org.gnome.meld.savedState
exec '/Applications/Meld.app/Contents/MacOS/Meld' "$@"
@postmart
Copy link

postmart commented Oct 3, 2014

@umar-ayaz, @insidersabroad
i have the same issue. did you manage to solve it?

thanks

@sanethd
Copy link

sanethd commented Nov 20, 2014

@yousseb
Copy link

yousseb commented Dec 30, 2014

I just made this:
https://github.com/yousseb/meld/releases/tag/osx-v1

No XQuartz and install right from a DMG file...

Enjoy..

@johnwrf
Copy link

johnwrf commented Jan 30, 2015

@yousseb
Thanks so much ! Your meld.dmg is very very helpful. FYI, I have been using DiffMerge for mac and that works very well.

It took a bit to configure the filters for Meld... like removing .svn .target *.class etc etc.

In general DiffMerge behaves more like a normal Mac app and provides a more condensed results window. Meld uses a different file picker, and shows all folders along with difference results. So if I have 400 folders and two changes, DiffMerge just shows two lines, one for each different file, while Meld shows all the folders and down the list, I would find the two different files.

Also, the color coding on Meld is nicer.

Anyways ... thanks again !

John

@p1nox
Copy link
Author

p1nox commented Mar 15, 2015

Great dmg @yousseb!

Update: For those who have problems in newer versions Homebrew/legacy-homebrew#36824

If you try:

$ brew install meld
Error: No available formula for meld 
Searching formulae...
Searching taps...`

Instead try:

$ brew install homebrew/x11/meld

@rianniello
Copy link

Thanks for the dmg @yousseb, very useful.

@mauhiz
Copy link

mauhiz commented Oct 20, 2015

python crashes for me too!

@brain64bit
Copy link

Well the dmg version works smoothly on Yosemite thanks @yousseb

@ricktao
Copy link

ricktao commented Oct 22, 2015

Need to install Xcode and do "xcode-select --install" before you can do "brew install".

@vishaldeepak
Copy link

python crashes for me

@GusGA
Copy link

GusGA commented Mar 3, 2016

@p1nox Do you can update the brew install line for brew install homebrew/gui/meld ?

@NKjoep
Copy link

NKjoep commented Jul 5, 2016

any chance to increase the font size? Do you guys know how to do that?

@nbtk123
Copy link

nbtk123 commented Sep 8, 2016

Launched successfully

@trumbitta
Copy link

👍 for the font size issue.

I seem to recall that some time ago you used to have some way to configure gtk properties for all the gtk-based applications.

@okutane
Copy link

okutane commented May 22, 2017

I guess it's brew install caskroom/cask/meld now.

@trumbitta
Copy link

In case you are on High Sierra and having

frozen: ImportError
Cannot import: GTK+
dlopen(/Applications/Meld.app/Contents/Resources/lib/python2.7/gi/_gi.so, 2): Symbol not found: _inflateValidate
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
  Expected in: /Applications/Meld.app/Contents/Frameworks/libz.1.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib

See: yousseb/meld#51

@alexandre1202
Copy link

alexandre1202 commented Jul 14, 2018

I have just managed to install and lauch meld with the following steps:
$ brew tap homebrew/cask
$ brew cask install meld

image
Thank you @p1nox for the gist!

@wences-dc-uba-ar
Copy link

In case you are on High Sierra and having

frozen: ImportError
Cannot import: GTK+
dlopen(/Applications/Meld.app/Contents/Resources/lib/python2.7/gi/_gi.so, 2): Symbol not found: _inflateValidate
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
  Expected in: /Applications/Meld.app/Contents/Frameworks/libz.1.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib

See: yousseb/meld#51

Worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment