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,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!o14g2000yqb.googlegroups.com!not-for-mail From: resander Newsgroups: comp.lang.ada Subject: How to fix 'Could not locate executable on path: gnatmake' Date: Fri, 7 May 2010 01:33:49 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 82.5.106.54 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1273221229 28077 127.0.0.1 (7 May 2010 08:33:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 7 May 2010 08:33:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o14g2000yqb.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:11356 Date: 2010-05-07T01:33:49-07:00 List-Id: 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 gdb gnathtml.pl gnatprep gprof c++ gdbserver gnatkr gnatstub gps cbrowser gnat gnatlink gnatxref gps_exe cpp gnatbind gnatls gprbuild i686-pc-linux-gnu-c ++ dbimp gnatcheck gnatmake gprbuild_debug i686-pc-linux-gnu-g ++ g++ gnatchop gnatmem gprclean i686-pc-linux-gnu- gcc gcc gnatclean gnatmetric gprclean_debug i686-pc-linux-gnu- gcc-4.3.4 gccbug gnatelim gnatname gprconfig objdump gcov gnatfind gnatpp 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 kr lost+found meijin ken@meijin-desktop:/home$ cd ken ken@meijin-desktop:~$ ls adatestproj Documents Music 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.