Hi,
Arduino: 1.6.3 (Windows 7), Board: "Arduino Uno"
When I try to upload 'Blink', it fails and the following error message appears:
Cannot run program "{runtime.tools.avr-gcc.path}/bin/avr-g++": CreateProcess error=2, The system cannot find the file specified
Can anyone help me understand why this is happening?
Thanks.
i recommend to download arduino version v1.0.5 & 1.0.6 the above ide is under development satge
i shared download link. if any error let us know
siplix
September 24, 2015, 7:54am
3
I have the same problem. Really still there is no decision?
same problem
any suggestion?
(I try with both version 1.6.4 and 1.6.5... with deinstal/instal couple time and same error)
well...
I started Arduino software from another user profile (on the same pc) and everything pass withou problems. So, error is in my pc/user profile. Just to find where is
Everon
October 9, 2015, 11:58am
6
Hello, I've got the same problem after installing 1.6.5.
The solution was, I've got a roaming-problem. So my "preferences.txt" resists twice on my Pc. One in the original installation directory an another in "C:\Users<USERNAME>\AppData\Roaming\Arduino". So the IDE always use the one in the roaming directory. This is a Windows behaviour.
Solution: Delete the whole Arduino Folder in the roaming Directory and everything works fine.
w1jp
October 11, 2015, 8:49pm
7
I am having the same issue. I have just upgraded to El Capitan (OS X 10.11) so maybe that has something to do with it.
retani
October 13, 2015, 7:20pm
8
I also had this issue after an upgrade to El Capitan and from Arduino 1.0.5 to 1.6.5. I have read https://github.com/arduino/Arduino/issues/2982 and Arduino IDE 1.5 3rd party Hardware specification · arduino/Arduino Wiki · GitHub and fixed it the following way. It is a terrible fix but it worked. There must be a better solution. But anyway, this is how:
get http://brew.sh/ if you don't already have it
Install AVR compiler:
$ brew install Caskroom/cask/crosspack-avr
Install avrdude (AVR uploader?)
$ brew install avrdude
Close Arduino App
Open /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/platform.txt (assuming your Arduino app is in the Applications folder)
find "{runtime.tools.avr-gcc.path}" and replace with "/usr/local/CrossPack-AVR"
find "{runtime.tools.avrdude.path}" and replace with "/usr/local/CrossPack-AVR"
Good luck!
Sofiya
March 7, 2016, 4:16pm
9
Thanks very much. It's solved my problems
“Long Path Tool” is very helpful for this error !
best solution for your problem.
I just encountered the OP's problem, after downloading the latest Arduino IDE (at the time of writing 1.8.2)
I didn't have to install avrdude or brew. All I had to do was replace two properties:
(Assuming the Arduino app has been moved to /Applications)
In /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/platform.txt
compiler.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/
In /Applications/Arduino.app//Contents/Java/hardware/platform.txt
tools.ctags.path=/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11
Credit:
opened 07:22PM - 14 Apr 15 UTC
closed 05:54PM - 22 Apr 15 UTC
status: Arduino IDE incompatibility
I tried the following using the plugin version 2.2.0.1 and the nightly build (2.… 4.0.201504090213) of the plugin.
for OSX the Arduino IDE has changed the path.
1.6.1: /Applications/Arduino.app/Contents/Resources/Java/hardware
1.6.2 and upwards: /Applications/Arduino.app/Contents/Java/hardware
setting the preferences in Eclipse:
using the plugin with OSX with 1.6.1 works without problems
using 1.6.2 and above results in "value must be an existing file" message. The version is detected successfully - but compilation is not working anymore.
I changed the preferences per project to match the new folder structure, but compilation shows the following - the path to the avr-g++ is not correct, while the path to the libraries is OK:
21:12:51 ***\* Incremental Build of configuration Release for project timelapse ****
make all
Building file: ../.ino.cpp
Starting C++ compile
"/bin/avr-g++" -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=nightly -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" -I"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard" -I"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/EEPROM" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp" -o ".ino.cpp.o" -Wall
/bin/sh: /bin/avr-g++: No such file or directory
make: **\* [.ino.cpp.o] Error 127
21:12:52 Build Finished (took 76ms)