I've been using Arduino for a while now, however suddenly I have been receiving the error message:
Arduino: 1.8.19 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
fork/exec /Users/ryanwilson/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: no such file or directory
Error compiling for board Arduino Mega or Mega 2560.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
This happens for all boards, including Arduino UNO also, and happens with all code which would have previously been compiled fine. I have attempted to reinstall the Arduino IDE, but this hasn't worked.
For any of my code which makes use of libraries, the libraries are seen in the dropdown menu. Also, even code which does not make use of libraries still has this issue.
up to where the path works? can you show what you have?
removing the AVR package and reinstalling it should fix it.
or delete the whole Arduino15 directory and go for a full IDE reinstall, including all the platforms you want to support.