Arduino test program not compiling on mac


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/ /Users/woutervanbodegraven/Downloads/ error loading plugin: dlopen(/Users/woutervanbodegraven/Downloads/, 2): Symbol not found: _environ
  Referenced from: /Users/woutervanbodegraven/Downloads/
  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