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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3bff6309ef5ab3f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!j33g2000yqn.googlegroups.com!not-for-mail From: resander Newsgroups: comp.lang.ada Subject: Re: How to fix 'Could not locate executable on path: gnatmake' Date: Fri, 7 May 2010 09:50:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <73639c63-c7e1-4cff-a25e-bfe9573bb375@j33g2000yqn.googlegroups.com> References: <87vdb0yrbf.fsf@ludovic-brenta.org> <87r5lnzpb3.fsf@ludovic-brenta.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 1273251047 19462 127.0.0.1 (7 May 2010 16:50:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 7 May 2010 16:50:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j33g2000yqn.googlegroups.com; posting-host=82.5.106.54; posting-account=6pd0vwoAAADNCHE_RCgO6D_xHxKamMYv User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11377 Date: 2010-05-07T09:50:46-07:00 List-Id: On May 7, 4:47=A0pm, Ludovic Brenta wrote: > Gautier write-only writes on comp.lang.ada: > > > Ludovic Brenta wrote: > > [...] > >> Or, simply upgrade to Debian :) > > > I knew it! It had to happen! > > That's because each time I see someone with $PATH or similar > installation problems, I just smile. =A0For me, everything works right ou= t > of the box. =A0No fuss, no muss. > > You made me smile, too :) > > -- > Ludovic Brenta. My addition to the end of the bashrc startup file is: # the line below is for GNAT GPL Ada PATH=3D/usr/gnat/bin:$PATH; export PATH After execution of bashrc on entry to ken (where I want to develop programs) the PATH is: /usr/gnat/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/ bin:/usr/games Compiler works when I start GPS from the command line (as Ludovic Brenta Georg Bauhaus predicted), and again as I mentioned before it does not work when invoked from the gui menu. BUT I have just installed GNAP GPL in usr/local and found that GPS compilation works when GPS is invoked from the gui menu. I would have expected this to have failed in the same way as above. So I can just delete the /usr/gnat install directory and remember to always install into /usr/local and that would be the end of the problem, but I would like to understand this better. The GNAT content of /usr/local/bin and /usr/gnat/bin are identical after installation and yet only one worked. Could it be that GPS code has the path /usr/local/bin hardwired or is / usr/local/bin special in some other way?