You don’t have a C++ compiler installed. I’m not exactly sure what all packages are required, but I can take a guess at some of them by taking a look at:
$ sudo apt-get install autoconf automake1.9 build-essential bison flex g++ gdb pkg-config
There might also be some Python dependencies such that you might want to also do
$ sudo apt-get install python-pip python-setuptools python2.7-dev
It also looks like you might have run out of disk space or had an issue at one point and attempted to install without cleaning out the target directories in a way that left things in a bad state. You might check your free disk space and potentially remove the temporary and target files created to get a clean start.
If that doesn’t do it for you, please let me know.