comp.lang.ada
 help / color / mirror / Atom feed
* question on installing gnat on linux mint
@ 2017-09-03  9:24 Nasser M. Abbasi
  2017-09-03 10:13 ` Frank Buss
  0 siblings, 1 reply; 3+ messages in thread
From: Nasser M. Abbasi @ 2017-09-03  9:24 UTC (permalink / raw)



Basic question:

I just installed Linux mint 18.2 which comes with gcc 5.4

>gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

To install Ada, I saw the command to use is

sudo aptitude install gnat

When I try the above, it says

------------------------------------
The following NEW packages will be installed:
   cpp-4.9{a} gcc-4.9{a} gcc-4.9-base{a} gnat gnat-4.9{a}
   gnat-4.9-base{a} libasan1{a} libgcc-4.9-dev{a}
   libgnat-4.9{a} libgnatprj4.9{a} libgnatvsn4.9{a}

The following packages are RECOMMENDED but will NOT be installed:
   ada-reference-manual-2012 gnat-gps
0 packages upgraded, 11 newly installed, 0 to remove and 229 not upgraded.
Need to get 24.4 MB of archives. After unpacking 101 MB will be used.
Do you want to continue? [Y/n/?] n
---------------------------------------------

My question is, why does it want to install gcc-4.9
when Linux comes with gcc 5.4 on it? Does this mean gnat 4.9
is build with earlier gcc? Will installing gnat change/overwrites
the version of gcc on my system? or does it install its
own gcc 4.9 somewhere else?

Thanks
--Nasser



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: question on installing gnat on linux mint
  2017-09-03  9:24 question on installing gnat on linux mint Nasser M. Abbasi
@ 2017-09-03 10:13 ` Frank Buss
  2017-09-03 10:17   ` Frank Buss
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Buss @ 2017-09-03 10:13 UTC (permalink / raw)


On 09/03/2017 11:24 AM, Nasser M. Abbasi wrote:
>
> My question is, why does it want to install gcc-4.9
> when Linux comes with gcc 5.4 on it? Does this mean gnat 4.9
> is build with earlier gcc? Will installing gnat change/overwrites
> the version of gcc on my system? or does it install its
> own gcc 4.9 somewhere else?

Linux Mint is based on Debian. The gnat packages in Debian are very 
outdated, even for the latest Debian release a few weeks ago (e.g. a 2 
year old gnat-gps). I had no problems installing it manually from this site:

http://libre.adacore.com

Default installation is /usr/gnat, which doesn't overwrite any installed 
C gcc compiler programs.

I wrote a script, /usr/bin/gnat, to run gps:

#!/bin/sh
cd /usr/gnat/bin
./gps

A logical link didn't work, because the gps starter program doesn't find 
gps_exe then. Might be possible to add /usr/bin/gnat to the system path 
as well.

-- 
Frank Buss, http://www.frank-buss.de
electronics and more: http://www.youtube.com/user/frankbuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: question on installing gnat on linux mint
  2017-09-03 10:13 ` Frank Buss
@ 2017-09-03 10:17   ` Frank Buss
  0 siblings, 0 replies; 3+ messages in thread
From: Frank Buss @ 2017-09-03 10:17 UTC (permalink / raw)


On 09/03/2017 12:13 PM, Frank Buss wrote:
>
> I wrote a script, /usr/bin/gnat, to run gps:

Correction: the script name is of course /usr/bin/gps

-- 
Frank Buss, http://www.frank-buss.de
electronics and more: http://www.youtube.com/user/frankbuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-03 10:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-03  9:24 question on installing gnat on linux mint Nasser M. Abbasi
2017-09-03 10:13 ` Frank Buss
2017-09-03 10:17   ` Frank Buss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox