Unable to upload to Arduino Micro

Hey, I have an Arduino Micro. I can program it from the online editor, but it is bugging up the program. Whenever I try to upload from the IDE, I get:

Arduino: 1.6.9 (Mac OS X), Board: "Arduino/Genuino Micro"

fork/exec /Users/msalomon/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 Arduino/Genuino Micro.

Anyone have a fix?

Try this:

  • Rename the folder /Users/msalomon/Library/Arduino15 to /Users/msalomon/Library/Arduino15.bak.
  • Restart the Arduino IDE.

Note that the above will cause any boards you have installed via Boards Manager to disappear. You can reinstall them but first do a test to verify the problem is resolved. If there is no problem you are free to delete /Users/msalomon/Library/Arduino15.bak. You can copy over preferences.txt from that folder with the Arduino IDE shut down if you want your old preferences back or you can just reconfigure them. The problem is somehow related to Boards Manager package installations going wrong, maybe an Arduino AVR Boards update or another 3rd party package interfering with Arduino AVR Boards. There were some issues with this around Arduino IDE 1.6.9 (though I remember it being 1.6.10 instead) so you might consider updating to the latest version of the Arduino IDE unless there is a specific reason for you to use Arduino IDE 1.6.9.

Thanks

Possibly a similar problem:
Ubuntu Mint Cinnamon
Arduino 1.8.5 IDE
USBasp
Pro Micro 5V

syslog has:
Apr 10 15:11:41 skennie-Vostro1510 kernel: [ 1548.744195] usb 6-1: new low-speed USB device number 2 using uhci_hcd
Apr 10 15:11:41 skennie-Vostro1510 kernel: [ 1548.914250] usb 6-1: New USB device found, idVendor=16c0, idProduct=05dc
Apr 10 15:11:41 skennie-Vostro1510 kernel: [ 1548.914263] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr 10 15:11:41 skennie-Vostro1510 kernel: [ 1548.914272] usb 6-1: Product: USBasp
Apr 10 15:11:41 skennie-Vostro1510 kernel: [ 1548.914279] usb 6-1: Manufacturer: www.fischl.de
Apr 10 15:11:41 skennie-Vostro1510 mtp-probe: checking bus 6, device 2: "/sys/devices/pci0000:00/0000:00:1d.1/usb6/6-1"
Apr 10 15:11:41 skennie-Vostro1510 mtp-probe: bus: 6, device: 2 was not an MTP device

IDE has "port" grayed out, and gives error "Arduino: 1.8.5 (Linux), Board: "SparkFun Pro Micro, ATmega32U4 (5V, 16 MHz)"

Sketch uses 4126 bytes (14%) of program storage space. Maximum is 28672 bytes.
Global variables use 149 bytes (5%) of dynamic memory, leaving 2411 bytes for local variables. Maximum is 2560 bytes.
Couldn't find a Board on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Please advise