I'm on a mac, I installed some library that may have messed up where the compiler is located.
The error I get is:
fork/exec /Users/Home/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-g++: no such file or directory
Error compiling for board Arduino/Genuino Uno.
I've tried to navigate to that location but it doesn't exist. I've uninstalled and reinstalled the arduino software a couple times and nothing changes. I've removed the libraries located in the documents folders and still no change.
Is there a package or library that I need to install?
Not sure what happened but it lost the path to the directory. Eventually I downloaded it twice so there was an 'arudino' and an 'arduino-2' the first one would not compile but the second one would. I guess just renaming it reinstalled the directory.
I understand necro bumping is bad, but I had to hardcore solve this problem for about 30 minutes. The issue ended up being I had accidentally downloaded the zip file 'non admin' version of the arduino IDE. I'm assuming if I ran it as an administrator the error would have no longer occurred, however it stopped upon downloading the correct version of IDE.