public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Ahsan Ali <ahsan.shah@email.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Help installing gfortran
Date: Mon, 18 Jun 2012 07:43:00 -0000	[thread overview]
Message-ID: <CAH6eHdSiOkf-4STZxPOW4dUq_8qcA3KHu_HewL24V1rLSPLMxw@mail.gmail.com> (raw)
In-Reply-To: <20120618053821.190120@gmx.com>

On 18 June 2012 06:38, Ahsan Ali <ahsan.shah@email.com> wrote:
> Dear All,
>
> I have been struggling with the installtion of gfortran, Now I am trying to
> follow the instructions on the link http://gcc.gnu.org/wiki/InstallingGCC
>
>
> 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=/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=/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.

       reply	other threads:[~2012-06-18  7:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20120618053821.190120@gmx.com>
2012-06-18  7:43 ` Jonathan Wakely [this message]
2012-06-18 11:05   ` Syed Ahsan Ali Bokhari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH6eHdSiOkf-4STZxPOW4dUq_8qcA3KHu_HewL24V1rLSPLMxw@mail.gmail.com \
    --to=jwakely.gcc@gmail.com \
    --cc=ahsan.shah@email.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).