Following steps are required for installing a non-compiled program ( building and installing a program directly from source code ).
Step 1: Ubuntu does not come with tools required for compiling a program by default.Thus, you need to install additional packages. Execute following code in the Terminal (Ctrl+Alt+T)
sudo apt-get install build-essential checkinstall cvs subversion git-core mercurial
Step 2: Extract the source file which usually comes in archives like
tar -xzvf package_name.tar.gz
Note: If you downloaded from source such as Git, SVN, or any other source repository then it is likely that the
./configure files have not yet been generated. You may be able to run the command
from within the downloaded files top directory. This command relies on
autoconf programs and will automatically build the configuration files and run the
Step 3: Make sure that there is no dependency problem. If there a dependency it will show an error like
configure: error: Library requirements (gtk-1.4+) not met
But right above that it will list a filename that it cannot find (often a filename ending in ".pc", for instance). What you need to do then is to run
apt-file search missingfilename.pc
which will tell you which Ubuntu package the missing file is in. You can then simply install the package using
sudo apt-get install requiredpackage
Then try running
./configure again, and see if it works. If you get to a bunch of text that finishes with config.status: creating Makefile followed by no obvious error messages, you're ready for the next steps.
Step 4: Now you need to build and install
which does the actual building (compiling) of the program.
When its done, install the program. You probably want to use
which puts the program in the package manager for clean, easy removal later. This replaces the old
sudo make install command.
Note: If checkinstall fails you may need to run the command like
sudo checkinstall --fstrans=0
Which should allow the install to complete successfully.
Alternatively, you can use
sudo make install instead of
sudo checkinstall if you are more inclined towards it.