From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20364 invoked by alias); 3 Feb 2009 16:43:05 -0000 Received: (qmail 20356 invoked by uid 22791); 3 Feb 2009 16:43:04 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from exprod6og106.obsmtp.com (HELO exprod6og106.obsmtp.com) (64.18.1.191) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Feb 2009 16:42:59 +0000 Received: from source ([192.150.11.134]) by exprod6ob106.postini.com ([64.18.5.12]) with SMTP ID DSNKSYh0EHkp/eMnn3ghQ1js/0kbDjNCPfOG@postini.com; Tue, 03 Feb 2009 08:42:59 PST Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id n13GbleM001038; Tue, 3 Feb 2009 08:37:47 -0800 (PST) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id n13Ggtir027821; Tue, 3 Feb 2009 08:42:55 -0800 (PST) Received: from nacas03.corp.adobe.com (10.8.189.121) by nahub02.corp.adobe.com (10.8.189.98) with Microsoft SMTP Server (TLS) id 8.1.336.0; Tue, 3 Feb 2009 08:42:55 -0800 Received: from nambx04.corp.adobe.com ([10.8.127.98]) by nacas03.corp.adobe.com ([10.8.189.121]) with mapi; Tue, 3 Feb 2009 08:42:55 -0800 From: "John (Eljay) Love-Jensen" To: rkarthi2k5 , GCC-help Date: Tue, 03 Feb 2009 16:43:00 -0000 Subject: Re: What is the objective of Configure, Make, Make Install? Message-ID: In-Reply-To: <21813162.post@talk.nabble.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2009-02/txt/msg00011.txt.bz2 Hi Karthikeyan, > 1) First, we have to unzip the [tar] file... Okay, that's good. You will probably also need to unzip the GMP and MPFR. Also, make sure you've already installed all the other prerequisite tools. http://gcc.gnu.org/install/prerequisites.html > ... and give ./configure Unlike almost all other packages, GCC is *NOT* configured quite that way, since you should not configure GCC in the same directory as the GCC source which you've extracted from the tar. As per the documentation... http://gcc.gnu.org/install/configure.html For almost all other packages (other than GCC), ./configure is very common. > 2) Second, we have to give make Good. Make sure you use GNU make, as per the prerequisites. > 3) Third, we logon to root and give make install. Good. > My question is, why we are doing the above steps sequentially and > what is actually happend at the each and every steps(configure,make,make > install). What is the objective of Configure, Make, Make Install? I reque= st > u to give elloborate explanation, because i m new to Linux. Waiting for ur > valuable reply. You are doing the steps sequentially because if you do them out of order, then the dependency of the later steps upon the completion of the first steps will cause that out-of-order step to fail. The configure step analyzes your platform, and sets parameters for the build, and constructs a makefile tailored to your platform. The make step, for GCC, runs a multi-pass build of GCC. (Note that you need to have a compiler installed to build GCC. A chicken-and-egg problem. That's one of the prerequisites listed in the prerequisites.html.) The make install step puts the built executable and other support files (such as man pages) into the location form which they are intended to run on your platform. HTH, --Eljay