Go Down

Topic: Can't upload first sketch (Read 2867 times) previous topic - next topic

nutman

Hello all,

After being a long time digitally inactive I'm looking forward to start learning C and the use of the Arduino, just because it such a practical thing.
But I'm stumped already. Please some advice. Spent hours on self help and had no luck so far.

This is what I use:
Original Arduino UNO R3
Mac OSX 10.6.8 (yes, a bit outdated but for other software reasons stuck for the next 6 months)
Java SE6
Arduino IDE 1.6.1
two "getting started books"

The board and port are correctly selected, and when I open the serial monitor the TX light comes on and I receive some characters.

When I try to upload the my first sketch the message uploading stays on and I get the following message:

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


So for I couldn't find anything related that made sense to me.

Thanks for helping, kind regards, Pieter

federicofissore

#1
Mar 12, 2015, 02:48 pm Last Edit: Mar 12, 2015, 02:49 pm by Federico Fissore
It looks a dynamic library version loading issue. We package avrdude on a 10.7
Try opening terminal and type
Code: [Select]
cd /usr/lib
sudo ln -s libedit.2.dylib libedit.3.dylib


Then retry starting the IDE

robertocoriglione

Thank you so much!! :)
I have had the same problem after I have update the arduino IDE on Mac OS X 10.6.8

nutman

Hi,

Did the terminal command but didn't work. Now I'm not an expert at all, but so it seems, that 'Cd' command isn't leading to the directory that follows. Can it be missing?

federicofissore

Hi,

Did the terminal command but didn't work. Now I'm not an expert at all, but so it seems, that 'Cd' command isn't leading to the directory that follows. Can it be missing?
Can you copy paste the output of those two commands?

nutman

Hi,

Ok, it works now!
I used a capital C in the cd command, so no directory change. And that made an alias in the wrong place.

Thanks a lot.

McKenzie

I'm also using an Uno R3, and Mac OSX 1.6.8, and this solved my problem as well. Thanks

jeux_sais_faire

Hello guys,
I had the same issue on Snow Leopard with a DiY Arduino 1.7.11 compiled app and re-did the Terminal move you suggest (already had done it before launching the first time actually, as suggested in the tuto, but I had the issue nonetheless), and this time it says: "ln: libedit.3.dylib: File exists" after sucessfully entering the password. What does it mean?
Any other suggestions?
Thanks a lot and in advance for your help, I'm desperate!
Cheers


Go Up