Page 1 of 1

error when uploading

Posted: Thu Jun 21, 2012 4:23 pm
by mineman@mac.com
I get the following error when uploading. The code validates just fine though.

dyld: Library not loaded: /usr/lib/libedit.3.dylib
Referenced from: /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude
Reason: image not found

Can anyone tell me why this is happening?

Re: error when uploading

Posted: Thu Jun 21, 2012 4:33 pm
by mineman@mac.com
Once again... Roberto, you the man!

Re: error when uploading

Posted: Fri Feb 01, 2013 2:20 pm
by aus996
I am encountering the same issue, are you able to post what the fix was

Re: error when uploading

Posted: Fri Feb 01, 2013 3:02 pm
by aus996
Okay so just completing this post the following link explains what this issue is, it seems to have worked for me, however if you are running LION osx it may have been resolved in any case

http://www.ludicroussoftware.com/blog/2 ... w-leopard/

Re: error when uploading

Posted: Tue Jul 01, 2014 7:40 pm
by rimai
Just for prosperity and in case the above website goes offline, here is the solution:
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.