examples not compiling!!

i tried to compile some examples but receiving same error. some days back all the examples were compiling fine.Someone please take a look..I'm using ubuntu 9.10

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring_private.h:28:20: error: avr/io.h: No such file or directory

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring_private.h:29:27: error: avr/interrupt.h: No such file or directory

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring_private.h:30:23: error: avr/delay.h: No such file or directory

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring_private.h:31:19: error: stdio.h: No such file or directory

from /home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring_analog.c:25:

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring.h:101: error: expected '=', ',', ';', 'asm' or 'attribute' before 'boolean'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring.h:102: error: expected '=', ',', ';', 'asm' or 'attribute' before 'byte'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring.h:110: error: expected ')' before 'mode'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring.h:111: error: expected ')' before 'int'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring.h:123: error: expected ')' before 'pin'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring.h:125: error: expected ')' before 'dataPin'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring.h:127: error: expected ')' before 'void'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/pins_arduino.h:28:26: error: avr/pgmspace.h: No such file or directory

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/pins_arduino.h:54: error: expected '=', ',', ';', 'asm' or 'attribute' before 'PROGMEM'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/pins_arduino.h:55: error: expected '=', ',', ';', 'asm' or 'attribute' before 'PROGMEM'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/pins_arduino.h:56: error: expected '=', ',', ';', 'asm' or 'attribute' before 'PROGMEM'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/pins_arduino.h:58: error: expected '=', ',', ';', 'asm' or 'attribute' before 'PROGMEM'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/pins_arduino.h:60: error: expected '=', ',', ';', 'asm' or 'attribute' before 'PROGMEM'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/pins_arduino.h:61: error: expected '=', ',', ';', 'asm' or 'attribute' before 'PROGMEM'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring_analog.c:28: error: expected '=', ',', ';', 'asm' or 'attribute' before 'analog_reference'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring_analog.c:30: error: expected ')' before 'mode'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring_analog.c:38: error: expected ')' before 'pin'

/home/anirudhh/Desktop/arduino-0017/hardware/cores/arduino/wiring_analog.c:77: error: expected ')' before 'pin'

It looks like you have some files missing. Best bet is to re install the Arduino application.

no files are missing. I've checked.everything is in the same folder which gets extracted after download.

It is files from the avr-gcc installation that are missing.

Hi,
you have to install the Ubuntu packages

"avr-libc" and "gcc-avr"

Eberhard