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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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-7-bit Path: g2news2.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Error when running gcc from GPS References: <1186698a-854c-44cd-9111-eeae825015dd@11g2000yqr.googlegroups.com> Date: Sun, 25 Apr 2010 08:42:02 -0400 Message-ID: <82zl0raelh.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:F2J9mF9K1tWEnVRE9s+RGOyYkoU= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: b59b74bd4390ce197caa705597 Xref: g2news2.google.com comp.lang.ada:11171 Date: 2010-04-25T08:42:02-04:00 List-Id: 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: >> >> /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