Skip to content

Instantly share code, notes, and snippets.

@p1nox
Last active June 13, 2023 16:24
Show Gist options
  • Star 72 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
  • 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' "$@"
@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