Welcome to LQ.
Prerequisites for all Ubuntu versions :
sudo apt-get install g++ make autoconf automake \
libtool libx11-dev libxmu-dev libxmu-headers libxt-dev
Ubuntu 10.10, also : sudo apt-get install g++-4.2
If you want answers, you will have to specify "Ubuntu <version>" :
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
And : The 64bits Ubuntu 11.04 cannot be used !
.