From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11266 invoked by alias); 18 Jun 2012 07:43:05 -0000 Received: (qmail 11254 invoked by uid 22791); 18 Jun 2012 07:43:03 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_BJ,TW_XZ X-Spam-Check-By: sourceware.org Received: from mail-lb0-f175.google.com (HELO mail-lb0-f175.google.com) (209.85.217.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Jun 2012 07:42:50 +0000 Received: by lbol5 with SMTP id l5so4368436lbo.20 for ; Mon, 18 Jun 2012 00:42:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.46.101 with SMTP id u5mr6012780lbm.21.1340005369218; Mon, 18 Jun 2012 00:42:49 -0700 (PDT) Received: by 10.112.48.6 with HTTP; Mon, 18 Jun 2012 00:42:49 -0700 (PDT) In-Reply-To: <20120618053821.190120@gmx.com> References: <20120618053821.190120@gmx.com> Date: Mon, 18 Jun 2012 07:43:00 -0000 Message-ID: Subject: Re: Help installing gfortran From: Jonathan Wakely To: Ahsan Ali Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2012-06/txt/msg00147.txt.bz2 On 18 June 2012 06:38, Ahsan Ali wrote: > Dear All, > > I have been struggling with the installtion of gfortran, Now I am trying = to > follow the instructions on the link=A0http://gcc.gnu.org/wiki/InstallingG= CC > > > tar xzf gcc-4.6.2.tar.gz > cd gcc-4.6.2 > ./contrib/download_prerequisites > cd .. > mkdir objdir > cd objdir > $PWD/../gcc-4.6.2/configure --prefix=3D/opt/gcc-4.6.2 > make > make instal > > > But I am not able to start configure. > > It shows as follows: > > [root@pmd03 gcc-4.7.0]# cd .. > [root@pmd03 ~]# mkdir objdir > [root@pmd03 ~]# cd objdir/ > [root@pmd03 objdir]# $PWD/ ../gcc-4.7.0/configure > -bash: /root/objdir/: is a directory There's a space in the command that shouldn't be there. > and if I give > [root@pmd03 objdir]# ../gcc-4.7.0/configure --prefix=3D/usr/local/ > checking build system type... x86_64-unknown-linux-gnu > checking host system type... x86_64-unknown-linux-gnu > checking target system type... x86_64-unknown-linux-gnu > checking for a BSD-compatible install... /usr/bin/install -c > checking whether ln works... yes > checking whether ln -s works... yes > checking for a sed that does not truncate output... /bin/sed > checking for gawk... gawk > configure: error: building out of tree but ../gcc-4.7.0 contains > host-x86_64-unknown-linux-gnu. > Use a pristine source tree when building in a separate tree It's telling you you've already run configure in the source directory. Delete the source directory and start again.