comp.lang.ada
 help / color / mirror / Atom feed
From: resander <kresander@gmail.com>
Subject: Re: Error when running gcc from GPS
Date: Sun, 25 Apr 2010 08:07:50 -0700 (PDT)
Date: 2010-04-25T08:07:50-07:00	[thread overview]
Message-ID: <1be45a80-5318-475b-bc5f-cf2fcaeaaa31@x3g2000yqd.googlegroups.com> (raw)
In-Reply-To: 82zl0raelh.fsf@stephe-leake.org

On Apr 25, 1:42 pm, Stephen Leake <stephen_le...@stephe-leake.org>
wrote:
> Simon Wright <si...@pushface.org> writes:
> > resander <kresan...@gmail.com> writes:
>
> >> 'Could not locate executable on path: gprbuild'
>
> >> I have ticked the checkbox for language C in the
> >> Languages tab in 'Edit Project Properties on the
> >> Project menu.
>
> >> I am guessing that 'executable' refers to gcc.
>
> > No, it refers to gprbuild!
>
> >> I did a search on gcc and found these:
>
> >>   /usr/bin/gcc    -- linked to
> >>   /usr/bin/gcc-4.3
>
> >>   /usr/bin/gnatgcc    -- linked to
> >>   /usr/bin/gcc-4.3
>
> >>   /home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin/gcc
>
> >> I also searched on gprbuild and found it is available in
>
> >>  /home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin
>
> >> How do I make GPS compile C files?
>
> > Make a link to it,
>
> > $ sudo ln -s \
> >  /home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin/gprbuild \
> >  /usr/bin
>
> As resander discovered, this is not the right solution. There are other
> executables and files that gprbuild needs, and it uses the path to the
> invoked executable to find them.
>
> You need to put
> /home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin in your PATH,
> so gprbuild is invoked with the right path, and can find these other files.
>
> The best way to do all of this is to use the Debian testing
> distribution, as Ludovic says.
>
> --
> -- Stephe



Thanks Stephen,

I added to the PATH as you suggested, but it is still not working.

How do I get the Debian testing distribution onto my Ubuntu 8.04?




  reply	other threads:[~2010-04-25 15:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-24 11:03 Error when running gcc from GPS resander
2010-04-24 11:15 ` Simon Wright
2010-04-24 16:53   ` resander
2010-04-24 17:46     ` Ludovic Brenta
2010-04-25 10:41       ` resander
2010-04-25 17:12         ` Ludovic Brenta
2010-04-25 12:42   ` Stephen Leake
2010-04-25 15:07     ` resander [this message]
2010-04-25 17:13       ` Ludovic Brenta
2010-04-25 15:22     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox