How to compile program in 3 Steps


On Linux, you can find quite a lot free stuff. Most of the open source softwares come with its own source code for you to compile. But many Linux newbies don’t know how to compile it.

Here is the method:

Extract the compressed file - tar or tar.bz files in terminal

$ tar -zxvf file.tar.gz
$ tar -jxvf file.tar.bz2

Then goes into the directory:

Step 1: Configure application to suit your system

$ ./configure

Step 2: Compile the application

$ make

Step 3: Install the application

# make install

You might notice some applications will require your root rights to install. So You might need to key in your password before processing to Step 3.








Leave a Reply