Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-09-2006, 10:51 AM   #1 (permalink)
The Linux Man !
 
paragkalra's Avatar
 
Join Date: Jan 2006
Location: Nagpur, Maharashtra, India
Posts: 217
Question Concept behind Configure and Make?


Hi everyone,
Installing rpms in linux is pretty simple.........all you need to do:
#rpm -ivh <file-name>.rpm
At times we may be required to use further more options like --force and --nodeps. Buts that okay.

However if the software is tape archived, we generally do:
#tar -xvf <file-name>.tar
cd <file-name>
./configure
make
make install

Although its not hard and fast.

Can anyone please explain what exactly happens when we fire:
./configure
make
make install

Some times we just need to fire:
make

So how to decide what to fire and what not to fire?
__________________
Parag.A.Kalra, The Linux Man
http://www.paragkalra.com/
In this world without WALLS and GATES who need WINDOWS! USE LINUX! STOP PIRACY! GO OPEN SOURCE!
paragkalra is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 07-09-2006, 11:03 AM   #2 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Concept behind Configure and Make?

http://en.wikipedia.org/wiki/Make should explain you a bit.
Well the commands are pretty much explanatory
configure - check whether the 'environment' has all the required factors. If not, you will get the error message on what is missing.
make - compiles the program.
make install - finishes the installation of program.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 07-09-2006, 11:57 AM   #3 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default Re: Concept behind Configure and Make?

Quote:
Originally Posted by paragkalra
Can anyone please explain what exactly happens when we fire:
./configure
./configure is a shell script that searches for development files(headers) in your system, and throws errors if your system lacks it. ./configure script is also selectively used to turn on/off certain features you might want in your newly build program.

If the ./configure script was run successfully, you should see a new file Makefile in your source directories.

Quote:
Originally Posted by paragkalra
make
make is a utility that does that actual compilation, and linking using that compiler you specify. make will by default search for a file named Makefile in your current directory to continue.

Quote:
Originally Posted by paragkalra
make install
This will install your newly build package to your systems, using the options (directory locations) you specified while doing ./configure.
Quote:
Originally Posted by paragkalra
Some times we just need to fire:
make
Because, those times a Makefile is already present. This is the case with smaller packages which do not have development header dependencies.
Quote:
Originally Posted by paragkalra
So how to decide what to fire and what not to fire?
Simple. Every good package comes with a README, INSTALL file. Follow those instructions.
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Old 07-09-2006, 12:52 PM   #4 (permalink)
Broken In
 
montylee's Avatar
 
Join Date: Nov 2005
Location: Delhi
Posts: 193
Default Re: Concept behind Configure and Make?

I would like to add to the explanation of the 'configure' script.

When you run the configure script, it searches for the header files, compilers, linkers and all the other dependencies required to build your source. For e.g.: On GNU/Linux, u have the gcc compiler, so configure will set the compiler to gcc. Similarly on Solaris or other *nix systems, it will set the compiler to 'cc'. It also checks for all the dependencies of the package. For e.g.: If u want to build a game from a source which uses SDL, then configure will search ur system for the SDL libraries and only if it is able to find the SDL libraries, it will succeed and create the appropriate makefiles otherwise it will fail.

I hope this little explanation helps...
__________________
Intel Core 2 Duo E6300, Intel DG965RY, MSI 8600GT OC, WD 250GB SATA-II Harddisk, Transcend 1GB 667 Mhz DDR2 RAM, Samsung Samtron 55V, Sennheiser HD485 cans, Zebronics LAVA Cabinet, Zebronics 400W PSU
montylee is offline  
Old 08-09-2006, 09:05 AM   #5 (permalink)
The Linux Man !
 
paragkalra's Avatar
 
Join Date: Jan 2006
Location: Nagpur, Maharashtra, India
Posts: 217
Default Re: Concept behind Configure and Make?

Thanx GNUarg for ur awesome tutor........it was just sweet........thanx for taking all the trouble.................i would also like to thank tech_your_future and montylee for their support and feedback........DIGIT FORUM ROCKS......
__________________
Parag.A.Kalra, The Linux Man
http://www.paragkalra.com/
In this world without WALLS and GATES who need WINDOWS! USE LINUX! STOP PIRACY! GO OPEN SOURCE!
paragkalra is offline  
Old 11-09-2006, 02:16 PM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: May 2004
Posts: 16
Default Re: Concept behind Configure and Make?

Does anyone know how to uninstall the software installed with configure/make/make install commands?
__________________
CompBEe
jigslinx is offline  
Old 11-09-2006, 02:56 PM   #7 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Post Re: Concept behind Configure and Make?

if u have the original source directory there,u can have a terminal opened in the dir and try `make uninstall`or rarely in some cases 'make deinstall';meAn time check usage of checkinstall really useful.
Quote:
About:
CheckInstall keeps track of all files installed by a "make install" or equivalent, creates a Slackware, RPM, or Debian package with those files, and adds it to the installed packages database, allowing for easy package removal or distribution.
also g00gle is yo frnd.
http://www.google.com/linux?hl=en&lr...ce&btnG=Search
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org

Last edited by praka123; 11-09-2006 at 03:20 PM.
praka123 is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Charan

Advertisement




All times are GMT +5.5. The time now is 05:14 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2