Fresh Start

Hi all.  I know this is more of an Arduino question and have already posted there.  Just looking to get this resolved as quick as possible.  I have been trying to get my system to run some code written by TinHead over at LetsMakeRobots.com.  I was getting compile errors due to avr/c++ library references.  Anyways, I never did get that problem fixed.  I switched gears and started working on a simpler robot that me and my 9 year old brother could build.  Basically, I have things messed up to a point where arduino cannot ever compile the simplest code.  I am getting the error:

In file included from blinkLED.cpp:2:0:
/home/josh/arduino-0022/hardware/arduino/cores/arduino/WProgram.h:4
:20: fatal error: stdlib.h: No such file or directory
compilation terminated.

I am running Ubuntu 10.10 and Arduino 22, both 64 bit.  I know the problem stems from me installing jre, avr-g++ and c++ because it was working fine (with the exception of the aforementioned Valkyrie code written by TinHead) until then.  Basically, I just want to wipe out jre, avr-g++, c++ and arduino, then reinstall with a clean slate.  I don't know how to do this though.  Please help! (my brother is getting impatient).

I use Fedora

But I would assume if you installed all the packages with apt-get you should erase them and re-install them…

#  apt-get --purge remove gcc-avr avr-libc

then install

apt-get install gcc-avr avr-libc


 

 

I had to install manually as

I had to install manually as installing from apt-get, Synaptic or Ubuntus software center only installs version 18