How To Compile Source Code In Ubuntu 9.10 Karmic Koala

Compiling Software in Ubuntu 9.10 Karmic Koala is easy!
If you have a source code,to make it an application program, you must first compile it.The advantage of distributing software is that you can use it any linux distro,as u already know deb file is only for debian based linux like ubuntu.Rpm is for red hat based fedora suse etc.

The source code is usally available in two forms of tar balls.

To complie source code we need system software called compilers.By default they are not given in ubuntu so to get all the compliers in one go type in Ubuntu 9.10 Karmic Koala console:

sudo apt-get install build-essential

Now you are ready to complile source code.I recommend first u read README file.

To complie source code in tar.gz format

1)tar -xzf file_folder.tar.gz
2)cd file_folder
3)./configure --prefix=/usr NOTE:If you already have the source configured you will see make file in some directory,you can skip this step.Go there using command:
cd file_folder
5)make install

To compile source code in tar.bz2 format
1) tar -xjf file_name.tar.bz2
2)cd file_name
3)./configure --prefix=/usr
5)make install

Use ./configure --help to see the options for that program, and then you can enable/disable anything you want.


Popular posts from this blog

How To Auto Mount Windows Or Mac Partion in Ubuntu linux 9.10 at StartUp

How To Install Compiz Fusion Desktop Effects In Ubuntu

Review & First Look : Ubuntu 8.10 Intrepid Ibex