Adruino and linux

I have used arduino and linux but never togather. I have installed all the dependancys but when compiling anything i get an error message, a long error message. Here the message:

/root/arduino-0018/hardware/arduino/cores/arduino/wiring_private.h:28:20: error: avr/io.h: No such file or directory

/root/arduino-0018/hardware/arduino/cores/arduino/wiring_private.h:29:27: error: avr/interrupt.h: No such file or directory

/root/arduino-0018/hardware/arduino/cores/arduino/wiring_private.h:30:23: error: avr/delay.h: No such file or directory

/root/arduino-0018/hardware/arduino/cores/arduino/wiring_private.h:31:19: error: stdio.h: No such file or directory

from /root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:25:

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.h:97: error: expected '=', ',', ';', 'asm' or 'attribute' before 'boolean'

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.h:98: error: expected '=', ',', ';', 'asm' or 'attribute' before 'byte'

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.h:106: error: expected ')' before 'mode'

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.h:107: error: expected ')' before 'int'

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.h:119: error: expected ')' before 'pin'

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.h:121: error: expected ')' before 'dataPin'

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.h:123: error: expected ')' before 'void'

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c: In function 'millis':

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:66: error: 'uint8_t' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:66: error: (Each undeclared identifier is reported only once

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:66: error: for each function it appears in.)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:66: error: expected ';' before 'oldSREG'

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:72: error: 'SREG' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:72: error: 'oldSREG' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c: In function 'micros':

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:79: error: 'uint8_t' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:79: error: expected ';' before 'oldSREG'

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:83: error: 't' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:83: error: 'TCNT0' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:89: error: 'TIFR' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:89: error: 'TOV0' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:93: error: 'SREG' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:93: error: 'oldSREG' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c: In function 'init':

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:166: error: 'TCCR0A' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:166: error: 'WGM01' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:166: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:167: error: 'WGM00' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:167: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:174: error: 'TCCR0B' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:174: error: 'CS01' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:174: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:175: error: 'CS00' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:175: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:181: error: 'TIMSK0' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:181: error: 'TOIE0' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:181: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:190: error: 'TCCR1B' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:190: error: 'CS11' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:190: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:191: error: 'CS10' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:191: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:193: error: 'TCCR1A' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:193: error: 'WGM10' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:193: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:199: error: 'TCCR2B' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:199: error: 'CS22' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:199: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:205: error: 'TCCR2A' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:205: error: 'WGM20' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:205: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:223: error: 'ADCSRA' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:223: error: 'ADPS2' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:223: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:224: error: 'ADPS1' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:224: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:225: error: 'ADPS0' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:225: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:228: error: 'ADEN' undeclared (first use in this function)

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:228: error: lvalue required as left operand of assignment

/root/arduino-0018/hardware/arduino/cores/arduino/wiring.c:236: error: 'UCSR0B' undeclared (first use in this function)

I can see its not finding all the files or did i just miss something? Any clue whats going on? Thanks in advance

looks like you dont have avrgcc installed, but I cant tell as you never list what dependices you did install nor the flavor of linux

it was avr-libc and binutils-avr_2.20-2 if you ever encounter this problem again. Thanks for the input!