This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gfortran installation help
On 18 June 2012 08:46, Syed Ahsan Ali Bokhari wrote:
> 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.