wget file.tar.gz
tar -jxvf file.tar.bz2
or
tar -zxvf file.tar.gz
cd file
and create a new directory
mkdir build
cd build
and run the configuration file
../configure
make