LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-18-2004, 07:04 AM   #1
snoopyswiss
Member
 
Registered: Jul 2004
Location: South Africa
Distribution: SuSE, Redhat
Posts: 41

Rep: Reputation: 15
Installing a Program?


Hi all.
Please can someone help me. What does the following mean:

./configure
make
make install

how does it work and what does it mean.




When i install from a TAR what steps do i need to take to install?


Thanks for your help.
 
Old 08-18-2004, 07:21 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Re: Installing a Program?

Quote:
Originally posted by snoopyswiss
Hi all.
Please can someone help me. What does the following mean:

./configure
make
make install

how does it work and what does it mean.




When i install from a TAR what steps do i need to take to install?


Thanks for your help.
./configure runs the configuration process and it checks to see if everything needed to compile the program exists on your system and most times you have the option of passing --with=/???/???/??? switches to tell it where you either want the program to install or where to find parts of the libraries it its looking for, using --help will give you a list of options you can use during the ./configure. Make does the actual compiling using the instructions in the Makefile the first two steps can be done as normal user. The make install again uses the instructions in the Makefile for the install procedure and usually needs to be run as root or you can use su -c 'make install' as normal user to run a one time command as root using the su program you would only need to type in the root password when asked and the make install command will then be run as root and when done you will be back to normal user on the command line. It is always best to compile with these steps as normal user you should never be compiling as root. Most times reading the README file that is usually included in the tarball tells whether you need to use all three steps and gives you additional information on build instructions for different distros.
 
Old 08-18-2004, 07:23 AM   #3
gunter
Member
 
Registered: Jan 2003
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
./configure is a script that checks your system setup for compatibility and prepares the source code to compile on your system.

make compiles the software

make install installs the software into the appropriate places on your system
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing program? quaylet MEPIS 8 05-23-2005 08:36 PM
need help installing a program shadizzle Linux - Newbie 10 01-08-2005 01:54 PM
Using a program after installing it stab Linux - Newbie 3 09-17-2004 06:21 AM
Installing a program PhuckFonix Linux - Newbie 6 05-29-2004 01:36 PM
installing a program bricast Linux - Newbie 5 08-15-2002 10:00 AM


All times are GMT -5. The time now is 05:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration