Error Compiling for board Arduino/Genuino Uno

i am getting this error on my MacOS X 10.7.5
i think it maybe be because of the downloads, but i'm really not sure. I've already downloaded the CH341SER.EXE, IDE for Mac and the CapacitiveSensor.zip but it seems that when i try to verify these codes below:

void setup()
{
pinMode(8, OUTPUT);

}

void loop()
{
digitalWrite(8, HIGH);
delay(1000);
digitalWrite(8, LOW);
delay(500);

}


it will say 'Error compiling for board Arduino/Genuino Uno.'

and then at the bottom it said:

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

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post. Please read it.

There is much more to the error. If you were observant you might have noticed there is a scroll bar on the right side of the black console window at the bottom of the Arduino IDE window. Take a some time to scroll that all the way to the top (or resize the console) and read through the contents, from top to bottom. This will contain the helpful messages from the compiling tools that you can use to find the cause of the problem. See if you can use that information to figure out what's wrong. If you can't we can help but we need enough information. "collect2: error: ld returned 1 exit status exit status 1" is a very generic message that is not useful at all for us to provide assistance.

When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here using code tags.