What pradeep_chauhan posted was the general process for installing any package from source, and it would work no matter which distro you used. Please mention what error(s) you faced.
Also, sometimes you may need to pass special configuration options while configuring the software, type
./configure --help | less
to see what options you could modify. Also check the documentation provided (files called README and INSTALL or something similiar) to check that you have all the required dependencies on your system.
And one more thing, all this info is assuming that the software is provided as its source code, which is not necessary. A tar.gz may be a collection of binary files, and have an installation script to install them. Mozilla, for example, comes in this way in its official version.