the gcc-3.4: command not found thing is nasty. I got this when trying to install drivers for AC'97 sound card. Instead of downloading gcc 3.4 (and having two versions of gcc on your system, ack), it appears you can do the following:
sudo ln -s <gcc-4.0> gcc-3.4
substitute whatever version of gcc you have for gcc-4.0 if required. Note, this will most likely only work with installed versions of gcc > 3.4. Otherwise, all you need to do is "sudo apt-get update gcc"