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: a07f3367d7,1e320108e0f97d38 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!188.40.43.213.MISMATCH!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Error when running gcc from GPS Date: Sat, 24 Apr 2010 12:15:17 +0100 Organization: A noiseless patient Spider Message-ID: References: <1186698a-854c-44cd-9111-eeae825015dd@11g2000yqr.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sat, 24 Apr 2010 11:15:17 +0000 (UTC) Injection-Info: news.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="7331"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18B6UoLz3UbC3hDvkBwbqCdNWoPhZaQ63o=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (darwin) Cancel-Lock: sha1:xY0WeeqlTSinCaOB6VxuatCSDs0= sha1:ZU1q6gnBEwj9xDsNmcRQypvhHDk= Xref: g2news2.google.com comp.lang.ada:11160 Date: 2010-04-24T12:15:17+01:00 List-Id: 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 (there may well be a more appropriate way, inclusing perhaps using GNAT GPL 2009?)