Ludicrous Software

Fixing the Corona Debugger in Snow Leopard

Last week somebody commented on my post about using the Corona debugger that they’re getting an error with one of the daily builds. I tested this out against the latest public build and I experienced the same thing. Here’s what I’m seeing:

dyld: Library not loaded: /usr/lib/libedit.3.dylib
  Referenced from: /Applications/CoronaSDK/debugger
    Reason: image not found
Trace/BPT trap

So the problem is that libedit.3.dylib isn’t found on my machine. Based on a bit of Googling, it looks like the problem is that I’m running Snow Leopard, which has libedit.2.dylib. However, my guess is that Ansca is building against Lion, which ships with libedit.3.dylib.

Luckily, there’s an easy fix to the problem. Open up the Terminal, and issue the following commands:

cd /usr/lib
sudo ln -s libedit.2.dylib libedit.3.dylib

All you’re doing is navigating to the directory where the debugger is looking for libedit.3.dylib, and creating a symbolic link to libedit.2.dylib named libedit.3.dylib. So when the debugger looks for the latter, it’ll get pointed to the former. After you enter the second command, you’ll have to enter your password.

This seems to be working fine for me so far, but hopefully it’s something for which Ansca can issue a proper fix in the future.