Error compiling for board arduinoMega 2560

Hi guys,

My board info is well connected, however as soon as I try to upload a sketch I get an error message:
fork/exec /Users/anthonycl/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.

What do I need to do exactly? Should I install a new library?

Best

You more than likely have a corrupted installation.

For version 1.8.x of the IDE

  1. Uninstall the IDE
  2. Delete the Arduino15 directory. On Windows it's (possibly a hidden) directory C:\Users\yourUserName\AppData\Local\Arduino15. No idea for other operating systems.
  3. Download a new copy of the IDE
  4. Install the new copy

Works now thanks!