Error compiling for board Adafruit Feather 32u4

Arduino: 1.8.5 (Mac OS X), Board: "Adafruit Feather 32u4"

fork/exec /Users/danielmitchell/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-g++: no such file or directory

Error compiling for board Adafruit Feather 32u4.

UPDATE: I used Terminal to navigate to the path listed. The bin directory is empty, how do I get avr-g++?

Posted on here and here and here.

Sorry for the duplicates––still learning forum etiquette.

The issue is usually caused by the hardware package installation not working correctly. The solution is to delete it and install again. Try this:

  1. Close all Arduino IDE windows
  2. Rename /Users/danielmitchell/Library/Arduino15 to /Users/danielmitchell/Library/Arduino15.bak
  3. Start the Arduino IDE
  4. Install the Adafruit hardware package again.
  5. Try compiling again

Note that your preferences are also stored in /Users/danielmitchell/Library/Arduino15 so you will need to either redo them or else you can exit the Arduino IDE and then copy /Users/danielmitchell/Library/Arduino15.bak/preferences.txt to /Users/danielmitchell/Library/Arduino15.

If this solves the problem you can delete /Users/danielmitchell/Library/Arduino15.bak. There shouldn't be anything irreplaceable in it but if you had other boards installed via Boards Manager you will need to install them over again. Please be very careful when deleting things on your computer. When in doubt back up!

Worked, thank you!