public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Help installing gfortran
       [not found] <20120618053821.190120@gmx.com>
@ 2012-06-18  7:43 ` Jonathan Wakely
  2012-06-18 11:05   ` Syed Ahsan Ali Bokhari
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Wakely @ 2012-06-18  7:43 UTC (permalink / raw)
  To: Ahsan Ali; +Cc: gcc-help

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help installing gfortran
  2012-06-18  7:43 ` Help installing gfortran Jonathan Wakely
@ 2012-06-18 11:05   ` Syed Ahsan Ali Bokhari
  0 siblings, 0 replies; 2+ messages in thread
From: Syed Ahsan Ali Bokhari @ 2012-06-18 11:05 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: Ahsan Ali, gcc-help

The configure starts and it has taken almost an hour and have not come
to an end yet. Also no error is generated. Its seems to me that the
processes is looping.


On Mon, Jun 18, 2012 at 12:42 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> 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.



-- 
 Engr. Syed Ahsan Ali Bokhari
 Electronic Engineer (EE)
 Research & Development Division
 Pakistan Meteorological Department H-8/2, Islamabad.
 Phone # off +92518358714
 Cell # +923155145014
 www.pmd.gov.pk

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-18 11:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20120618053821.190120@gmx.com>
2012-06-18  7:43 ` Help installing gfortran Jonathan Wakely
2012-06-18 11:05   ` Syed Ahsan Ali Bokhari

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).