Meld redux
Meld is, by far, the best diff viewer & editor that I have used. Earlier I posted about getting Meld up and running on OSX and overcoming a couple of issues. With the current version of MacPorts (1.7.1) and Meld 1.2, it’s much easier :)
After installing MacPorts 1.7.1 and running sudo port install meld you will have Meld installed. But, most likely, when you try to run Meld it will give you an error similar to this:
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
To fix this simply run this command in Terminal:
sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
Now, when you try to run Meld in OS X you will get this:


Not sure what’s wrong, but I installed meld with macports. I tried running “sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist” But I still get the following error:
Xlib: extension “RANDR” missing on display “/tmp/launch-8Gi8Lz/:0″. Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Traceback (most recent call last): File “/opt/local/bin/meld”, line 109, in meldapp.main() File “/opt/local/lib/meld/meldapp.py”, line 855, in main app = MeldApp() File “/opt/local/lib/meld/meldapp.py”, line 528, in init self.prefs = MeldPreferences() File “/opt/local/lib/meld/meldapp.py”, line 465, in init prefs.Preferences.init(self, “/apps/meld”, self.defaults) File “/opt/local/lib/meld/prefs.py”, line 91, in init self._gconf.add_dir(rootkey, gconf.CLIENT_PRELOAD_NONE) glib.GError: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details – 1: Failed to get connection to session: Not enough memory)
Don’t know much about CLI, do you know what’s wrong?
Mo, I found this that shows how to fix the error (at least it worked for me.)
Type these two commands into your terminal:
sudo launchctl load -w ${startup_root}/Library/LaunchDaemons/ org.freedesktop.dbus-system.plistsudo launchctl load -w ${startup_root}/Library/LaunchAgents/ org.freedesktop.dbus-session.plist
After running those if you navigate to /Library/LaunchDaemons/ and /Library/LaunchAgents/ you should see links their that point to the dbus files in MacPorts. Then it will work :)
Do not use sudo on the first one!
Here is how I get it installed on snow leopard:
$sudo port install meld $launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist $sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
Thanks for this, fantastic! Used it to fix issues with my cluttergst install on Snow Leopard. Saved me a lot of work!
Hey all,
Does meld integrate with and utilize SVN?
Cheers, Lee
I use the following alias for viewing differences in Subversion:
alias svnmeld=’svn diff –diff-cmd meld’
Seems to work fine after I followed message #3 above from HelpdeskOnTwitter.
Thanks guys, this post helped me get meld working on my mac
Thanks for the tips, it helps.