Upload error on Mac OS X

Hi,

I have these weird errors when uploading a sketch:

/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude: line 3: dirname: command not found
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude: line 5: dirname: command not found
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude: line 5: chmod: command not found
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude: line 6: dirname: command not found
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude: line 6: /avrdude_bin: No such file or directory
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude: line 6: exec: /avrdude_bin: cannot execute: No such file or directory

I have tried with older version and it's the same. Any ideas?

Anyone got any ideas? I've tried with 1.6.5, 1.5 BETA and 1.0.6 and it's the same issue. I am on Mac OS X 10.10.1

I don't know how it would apply to 1.0.6 but a bunch of people have had IDE 1.6.x problems, including IDE crashes and bizarre compile errors, when they have an old 1.5.x/1.6.x installation. Those problems seem to be caused by out-of-date executables that the new IDE saves outside the IDE installation directory. In such cases it appears that the fix is to delete or rename the old "Arduino15" directory and re-install 1.6.x.

On Mac OS X:
/Users/username/Library/Arduino15

On Windows:
C:\Users\username\AppData\Roaming\Arduino15

Tried what you said but I still get those errors.. any other suggestions? Thanks!

You should probably update from Mac OS X 10.10.1 to 10.10.5

OS X update finally did it for me, then I re-installed Arduino 1.6.5 and it works as expected. Thanks a lot! :slight_smile: