Since it looks like you are trying to compile did you install the build-essential package?
sudo aptitude install build-essential
i think some of the codes you typed in terminal are incorrect. make sure you type in the proper code and in the correct case too
Thank you I'll give it another go.
Thanks everyone I got it.