Monday, August 22, 2011

Install Package With Configure Make Make Install .tgz Command

Most of Linux Open Source Software Package come with .tgz tarball format.
These Packages install with three command
1)./configure
2)make
3)make install


./configure
a)configure it is just shell script
b)configure it check lot of dependency on the current system.
c)output it has short question with [YES/NO] answer.
d)if any of the major requirement is missing then it will not continue.
e)if it is fulfill there requirement,Then
it will build new Make file.
SAMPLE CONFIGURE OUTPUT
checking for memory.h... yes
checking whether struct hostent contains h_addr_list... yes
checking that we can build MPI programs with Fortran 77... no
MAKE
while we run the make command first it is look for makefile then it will build there program as per makefile instruction,
if the make run successfully, then it is almost finish.

MAKE INSTALL
it will find the Install in the makefile.
when run make command without any parameter makefile begin from the start.
But when we run make with Install Parameter then make it will search the label install in the file and run only that section. In these process it will copy some of the binary file to the /usr/local/bin so that all the user can run that command.

Configure Some of the Parameter

./configure --prefix=/opt/cluster
while compile --prefix option the Installation Important file move to the particular directory
14)while run ./configure --with-fc=0
If we want to disable some Feature like fortan compiler
Disable the Fortan complier
--with-fc=0
For MPI
--with-mpi=0
configure with help command
./configure --help

0 comments:

Flag counter

free counters