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,3bff6309ef5ab3f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feeder.erje.net!eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: How to fix 'Could not locate executable on path: gnatmake' Date: Fri, 07 May 2010 11:49:40 +0200 Organization: A noiseless patient Spider Message-ID: <87vdb0yrbf.fsf@ludovic-brenta.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Fri, 7 May 2010 09:49:40 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="ZgWGYwcGR6n1hTKAVilGyA"; logging-data="27344"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/J1beOXd2RkjGWKZ3/iKj0" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:PPt7KVFFDzOMGp2NV8l1+1Hyvvo= sha1:g5NUdE83ufB7+VYPrp74Krk7GGA= Xref: g2news2.google.com comp.lang.ada:11359 Date: 2010-05-07T11:49:40+02:00 List-Id: resander writes: > I added /usr/gnat/bin to the (Ubuntu 10.04) bashrc startup script of > the user 'ken' from which I want to use GPS. The echo command > > echo $PATH > /usr/gnat/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/ > bin:/usr/games > > issued after login to 'ken' shows that /usr/gnat/bin is on the path. [...] > but from GPS 'Could not locate executable on path: gnatmake' appears > when I request compile file from adaptestproj directory. > > I cannot see what is wrong. Would be grateful for advice. The $PATH you set in ~/.bashrc is only valid for bash, i.e. only in the terminal window you open. If you start GPS from a graphical menu, this menu does not run in your shell therefore cannot see your changed $PATH, so neither can GPS. For GPS to see your $PATH, two conditions must be met: * your ~/.bashrc exports PATH (not just sets it) * you must start GPS from bash, i.e. from a command line. Or, simply upgrade to Debian :) HTH -- Ludovic Brenta.