Arduino Uno not compiling,

I’m on a 2015 Macbook Pro and I’m trying to get started with Arduino Uno.

I tried the blink test and I get this error. Any yes, I read the getting started/troubleshooting guide.
I was getting a different error before (see attachment) and then read I should burn the bootloader. Well, that didn’t help anything and now I get this.

Arduino: 1.8.8 (Mac OS X), Board: “Arduino/Genuino Uno”

I am a complete beginner and just want to be able to get started, or to know if my board is broken or what.

/Applications/ -dump-prefs -logger=machine -hardware /Applications/ -hardware /Users/charlesmalave/Library/Arduino15/packages -tools /Applications/ -tools /Applications/ -tools /Users/charlesmalave/Library/Arduino15/packages -built-in-libraries /Applications/ -libraries /Users/charlesmalave/Documents/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10808 -build-path /var/folders/yx/j_5cwvtn66ndxdck4v5nb8rh0000gn/T/arduino_build_163013 -warnings=none -build-cache /var/folders/yx/j_5cwvtn66ndxdck4v5nb8rh0000gn/T/arduino_cache_105095 -prefs=build.warn_data_percentage=75 -verbose /Applications/
/Applications/ -compile -logger=machine -hardware /Applications/ -hardware /Users/charlesmalave/Library/Arduino15/packages -tools /Applications/ -tools /Applications/ -tools /Users/charlesmalave/Library/Arduino15/packages -built-in-libraries /Applications/ -libraries /Users/charlesmalave/Documents/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10808 -build-path /var/folders/yx/j_5cwvtn66ndxdck4v5nb8rh0000gn/T/arduino_build_163013 -warnings=none -build-cache /var/folders/yx/j_5cwvtn66ndxdck4v5nb8rh0000gn/T/arduino_cache_105095 -prefs=build.warn_data_percentage=75 -verbose /Applications/
Using board ‘uno’ from platform in folder: /Applications/
Using core ‘arduino’ from platform in folder: /Applications/
Detecting libraries used…
/Users/charlesmalave/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Applications/ -I/Applications/ /var/folders/yx/j_5cwvtn66ndxdck4v5nb8rh0000gn/T/arduino_build_163013/sketch/Blink.ino.cpp -o /dev/null
fork/exec /Users/charlesmalave/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-g++: no such file or directory
Error compiling for board Arduino/Genuino Uno.

Hey all,

I found the solution here.

Sorry for the earlier post. I can't figure out how to delete it.

The community suggests editing the post title by adding a [solved] in it once you have a solution. FYI

I have also faced the same compiling issue on my MacBook Pro and to fix this error, I had updated the system, but, after the update, my macbook pro won’t turn on black screen. Now, how can I solve this Black Screen issue on my MacBook Pro?