Meld redux

July 14th, 2009

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:

Meld 1.2 Running on Mac OS X 10.5 using MacPorts 1.7.1

Meld 1.2 Running on Mac OS X 10.5.7 using MacPorts 1.7.1

3 Responses to “Meld redux”

  1. Mo Says:

    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?

  2. jon beebe Says:

    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.plist
    sudo 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 :)

  3. HelpdeskOnTwitter Says:

    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

Leave a Reply