cannot run examples

1st time trying arduino. running ubuntu 12.04 with mega2560. when I try to verify examples such as blink in sketch, I get (cannot run prog "avr-g++" java.io.IOEXCEPTION; error=2 no such file or directory. also sometimes serial port will show up properly, sometimes it won't. i am totally confused.

Did you download Arduino IDE from Arduino.cc or did you install from the Ubuntu package manager?

I downloaded it from ardiuno.cc

I found that I was missing a lib. So I downloaded some using synaptic package manager. It works...I tried the blink example, and changed it to blink pin 14 and watched it with a meter. Now if I can get it to work with windoze 7.

thank you

chipv12:
Now if I can get it to work with windoze 7.

What is a windoze?