Arduino test program not compiling on mac

Hi,

I just installed Arduino on a mac running OS X10.7 but i keep getting the same error when compiling.
My guess is that i have a corrupt file or something but i dont know which.
I tried deleting the Arduino15 folder but that didnt work.
Help would be great!

This is the error code:

Arduino: 1.8.4 (Mac OS X), Board: "Arduino/Genuino Uno"

/Users/woutervanbodegraven/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld: /Users/woutervanbodegraven/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so: error loading plugin: dlopen(/Users/woutervanbodegraven/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so, 2): Symbol not found: _environ
  Referenced from: /Users/woutervanbodegraven/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so
  Expected in: /usr/lib/libSystem.B.dylib

collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.

Arduino15 is needed to hVe it working

Your best options is to disinstall it delete all reboot and do a clean install again

Sorry!