How to Compile and Install .tar.gz or .tar.bz2 Source Package on Debian and Ubuntu
In this article i will show you how to install packages using source archive on Ubuntu systems.
Firstly you need to prepare your system with requirements for compilation.
$ sudo apt-get install apt-file autoconf build-essential checkinstall
Extract Source Package
Firstly download the source archive on your system and extract it. Mostly users select home directory, /opt or Desktop for extracting package but we prefer to use /usr/local/src/ directory for extracting source of packages.
Compile and Install from Source
Now navigate to extracted directory and look for one of files INSTALL or INSTALL.txt or README.
You may also need to install some dependencies if, for example, running configure prompted you with an error listing which dependencies you are missing. You can also use checkinstall instead of make install.