im not sure...
from the error messages, it says you dont have gcc isntalled.. do you? use apt-get or apt-something to install it since u cant use your web browser.. btw, whats the [more specific] deal with your browser and that problem? i dont know much about apt or how to use it but look it up and there will be tons of tutorials for it im sure.
it also says 'You do not appear to have libc header files installed on your system.
Please install your distribution's libc development package.' so install the libc header files? besides these couple things, i dont know what to say.. im still new to linux.