Author Topic: sketch does not load: err -13 avrdude permission denied [MacOS 10.8] (solved)  (Read 3437 times)

dd33

  • Newbie
  • *
  • Posts: 2
Hi,
I just installed the software following the getting started page and tested the blink sketch. It works now but
two things I had to do were not obvious for me, and might be worth mentioning in the wiki
(I'm running arduino IDE 1.5.8 java 7 version for MacOS)

- I had to *create* the hardware/ subdirectory in my Documents/Arduino folder
(n.b. it took me sometimes to understand I had to create this directory, I started looking for it...)

- I had to change the authorizations of avrdude and micronucleus to executable (+x) with chmod using the Terminal

For reference the error message I got was the  following:
Code: [Select]
Sketch uses 912 bytes (6%) of program storage space. Maximum is 14,844 bytes.
Global variables use 9 bytes of dynamic memory.
java.io.IOException: Cannot run program "/Users/didier/Documents/Arduino/hardware/digistump/avr/tools/avrdude": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
at java.lang.Runtime.exec(Runtime.java:617)
at java.lang.Runtime.exec(Runtime.java:485)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:13)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:104)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:125)
at processing.app.Sketch.upload(Sketch.java:1713)
at processing.app.Sketch.exportApplet(Sketch.java:1624)
at processing.app.Sketch.exportApplet(Sketch.java:1596)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2392)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:184)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
... 10 more