From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1e320108e0f97d38 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!x3g2000yqd.googlegroups.com!not-for-mail From: resander Newsgroups: comp.lang.ada Subject: Re: Error when running gcc from GPS Date: Sun, 25 Apr 2010 08:07:50 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1be45a80-5318-475b-bc5f-cf2fcaeaaa31@x3g2000yqd.googlegroups.com> References: <1186698a-854c-44cd-9111-eeae825015dd@11g2000yqr.googlegroups.com> <82zl0raelh.fsf@stephe-leake.org> NNTP-Posting-Host: 82.5.106.54 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1272208070 32002 127.0.0.1 (25 Apr 2010 15:07:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 25 Apr 2010 15:07:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x3g2000yqd.googlegroups.com; posting-host=82.5.106.54; posting-account=5kIDUAkAAACEMLy16tM5OtzZtznE-9-5 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11172 Date: 2010-04-25T08:07:50-07:00 List-Id: On Apr 25, 1:42=A0pm, Stephen Leake wrote: > Simon Wright writes: > > resander 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: > > >> =A0 /usr/bin/gcc =A0 =A0-- linked to > >> =A0 /usr/bin/gcc-4.3 > > >> =A0 /usr/bin/gnatgcc =A0 =A0-- linked to > >> =A0 /usr/bin/gcc-4.3 > > >> =A0 /home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin/gcc > > >> I also searched on gprbuild and found it is available in > > >> =A0/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 \ > > =A0/home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin/gprbuild \ > > =A0/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 file= s. > > 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?