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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1e320108e0f97d38 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!y30g2000yqh.googlegroups.com!not-for-mail From: resander Newsgroups: comp.lang.ada Subject: Re: Error when running gcc from GPS Date: Sun, 25 Apr 2010 03:41:05 -0700 (PDT) Organization: http://groups.google.com Message-ID: <93ca89f8-3d8e-4f05-a63a-25d42768f65c@y30g2000yqh.googlegroups.com> References: <1186698a-854c-44cd-9111-eeae825015dd@11g2000yqr.googlegroups.com> <87pr1o2166.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 1272192065 7024 127.0.0.1 (25 Apr 2010 10:41:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 25 Apr 2010 10:41:05 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y30g2000yqh.googlegroups.com; posting-host=82.5.106.54; posting-account=5kIDUAkAAACEMLy16tM5OtzZtznE-9-5 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11169 Date: 2010-04-25T03:41:05-07:00 List-Id: On Apr 24, 6:46=A0pm, Ludovic Brenta wrote: > resander writes: > > On Apr 24, 12:15=A0pm, Simon Wright wrote: > >> 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: > > >> > =A0 /usr/bin/gcc =A0 =A0-- linked to > >> > =A0 /usr/bin/gcc-4.3 > > >> > =A0 /usr/bin/gnatgcc =A0 =A0-- linked to > >> > =A0 /usr/bin/gcc-4.3 > > (Caution: shameless plug ahead) > > These seem to be the executables installed by the Debian packages. =A0Are > you using Debian or a derivative thereof? > > Your problems seem to be a bad installation of GNAT GPL; I suggest you > either re-install GNAT GPL properly, i.e. following the installation > instructions _to the letter_, or upgrade to Debian GNU/Linux "testing" > (soon to be released as 6.0 "Squeeze"). =A0Thanks to Stephen Leake, Debia= n > now includes gprbuild and installs it properly. =A0All your problems woul= d > go away if you installed the following packages: > > gnat > gnat-gps > gprbuild > > You can do this with "aptitude install gnat gnat-gps gprbuild". > > (The entire purpose of a binary distribution like Debian is to ease the > burden of installing and configuring software, so you don't have to > troubleshoot such problems and can concentrate on your programming > instead). > > -- > Ludovic Brenta. I am on Ubuntu 8.10 and have not used any other Linux. I agree this is an installation problem, but I still don't know how to fix it. I downloaded GNAT GPL 2009 from Libre. I unpacked using the GUI decompress program available from the Ubuntu menu and it ended up in directory /home/ken/Desktop/gnat-2009-i686-gnu-linux-libc2.3-bin. I used the doinstall script in this directory and gave the install base direcory as /usr/gnat as suggested. Installation ran to completion without errors and I added /usr/gnat/bin to the $PATH as the doinstall script prompted me to do. Result: I could enter the new GPS program, but it failed compiling Ada and C with errors shown in my previous post. I guess this has something to do with grpbuild. There is a gprbuild in the old GNAT GPL 2008 install directory, but there are no gpr-related files in the new install directory at /usr/gnat. GNAT GPL 2008 is available via the Ubuntu Synaptic Package Manager (a GUI front end for the commandline package manager) I used Synaptic. No luck, still the same. I tried the commandline too by sudo aptitude install gnat gnat-gps gprbuild and got message 'Couldn't find any package whose name or description matched "gprbuild', so gprbuild is not available via the repository used by ubuntu. How do I install GNAT GPL 2009 on Ubuntu?