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 Path: g2news2.google.com!postnews.google.com!d19g2000yqf.googlegroups.com!not-for-mail From: Harry Tucker Newsgroups: comp.lang.ada Subject: Re: How to fix 'Could not locate executable on path: gnatmake' Date: Fri, 7 May 2010 06:05:41 -0700 (PDT) Organization: http://groups.google.com Message-ID: <56b185e5-228e-4437-936c-714d2de007b9@d19g2000yqf.googlegroups.com> References: NNTP-Posting-Host: 69.154.142.85 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1273237541 26161 127.0.0.1 (7 May 2010 13:05:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 7 May 2010 13:05:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d19g2000yqf.googlegroups.com; posting-host=69.154.142.85; posting-account=gm6zjwoAAADRUx8sKB8rAyyVV-bSRk9M User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11367 Date: 2010-05-07T06:05:41-07:00 List-Id: On May 7, 3:33=A0am, resander wrote: > I installed (by doinstall) the latest version of free GNAT GPL from > Libre into directory /usr/gnat/bin. After install this contains: > > ken@meijin-desktop:/usr/gnat/bin$ ls > addr2line =A0gdb =A0 =A0 =A0 =A0gnathtml.pl =A0gnatprep =A0 =A0 =A0 =A0 g= prof > c++ =A0 =A0 =A0 =A0gdbserver =A0gnatkr =A0 =A0 =A0 gnatstub =A0 =A0 =A0 = =A0 gps > cbrowser =A0 gnat =A0 =A0 =A0 gnatlink =A0 =A0 gnatxref =A0 =A0 =A0 =A0 g= ps_exe > cpp =A0 =A0 =A0 =A0gnatbind =A0 gnatls =A0 =A0 =A0 gprbuild =A0 =A0 =A0 = =A0 i686-pc-linux-gnu-c > ++ > dbimp =A0 =A0 =A0gnatcheck =A0gnatmake =A0 =A0 gprbuild_debug =A0 i686-pc= -linux-gnu-g > ++ > g++ =A0 =A0 =A0 =A0gnatchop =A0 gnatmem =A0 =A0 =A0gprclean =A0 =A0 =A0 = =A0 i686-pc-linux-gnu- > gcc > gcc =A0 =A0 =A0 =A0gnatclean =A0gnatmetric =A0 gprclean_debug =A0 i686-pc= -linux-gnu- > gcc-4.3.4 > gccbug =A0 =A0 gnatelim =A0 gnatname =A0 =A0 gprconfig =A0 =A0 =A0 =A0obj= dump > gcov =A0 =A0 =A0 gnatfind =A0 gnatpp =A0 =A0 =A0 gprconfig_debug > > 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. > > gnatmake works from the command line for a small test program main.adb > in adatestproj directory: > > ken@meijin-desktop:/home$ ls > ken =A0kr =A0lost+found =A0meijin > > ken@meijin-desktop:/home$ cd ken > ken@meijin-desktop:~$ ls > adatestproj Documents =A0Music Videos... > > ken@meijin-desktop:~$ cd adatestproj > ken@meijin-desktop:~/adatestproj$ ls > main.adb main.gpr > ken@meijin-desktop:~/adatestproj$ gnatmake main.adb > gcc -c main.adb > gnatbind -x main.ali > gnatlink main.ali > > 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. Try looking at https://help.ubuntu.com/community/EnvironmentVariables and the section on persistent environment variables.