comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Ada download
Date: Sun, 14 Jan 2018 18:03:59 +0000
Date: 2018-01-14T18:03:59+00:00	[thread overview]
Message-ID: <ly6084b9m8.fsf@pushface.org> (raw)
In-Reply-To: 3ad76710-0a22-4aa0-91e7-1da8fcd6f357@googlegroups.com

sophia.adampour@gmail.com writes:

> fredag 12. januar 2018 10.39.09 UTC+1 skrev Simon Wright følgende:
>> sophia.adampour@gmail.com writes:
>> 
>> > Thank you! This shows up when I say
>> >
>> > $ gps &:
>> >
>> > Adampours-MacBook-Pro:~ adampour$ gps &
>> > [1] 6390
>> > Adampours-MacBook-Pro:~ adampour$ -bash: gps: command not found
>> >
>> > So my download is not correct?
>> 
>> No, it just means that gps isn't on your PATH.
>> 
>> Setting up your PATH on macOS is a whole other question! If you look
>> into the GPS.app I uploaded (*from the terminal*) you'll see
>> 
> I cannot see the file, it will only download because it's a zip-file
> Dropbox states

1) go to https://www.dropbox.com/s/5gd84jl255povju/GPS.zip?dl=0 and
download the file (GPS.zip).

2) in Finder, in the Downloads folder, find GPS.zip and double-click;
this should unpack it and create GPS.app (you won't see the .app part,
because Finder hides this file extension, and you may have to clean up
the view (Finder>View/Clean Up By>Name); you'll see a pretty blue icon
with a G in the middle).

3) double-click on this GPS icon to start up GPS.

4) when you are happy, drag the GPS icon into the Applications folder.


>> 
>> and in order not to have to do the "export" line every time you start a
>> new Terminal you need to copy that line to the end of one of the startup
>> scripts, probably ~/.bash_profile_common .
>> 
>>I am sorry, but where do I find this line? Seriously, I am so sorry
>> for all these stupid questions
>> 
>> > Btw. Does anyone know about any tutorials on how to use this GPS with
>> > Mac Terminal? :-)
>> 
>> (a.k.a. "from the command line")
>> 
>> GPS is an IDE (Interactive Develpoment Environment). When it wants to do
>> a compilation it calls up GNAT's command line tools to do the job.
>> 
>> If you want to compile a file e.g. hello.adb from the command line, then
>> (assuming your PATH is set up as above!) you say
>> 
>>    $ gnatmake hello.adb
>   
> I say this in the Mac terminal, right?

Yes.

When you open a macOS Terminal, you see a $ prompt and that is the
command line. When you type stuff in there, you are typing it at the
command line.

I do think you'll be better off compiling from within GPS. AdaCore have
a couple of tutorials, both Windows but once you're in GPS there's not a
lot of difference.

https://www.youtube.com/watch?v=QesNHCKNxFM (a couple of years old)

https://www.youtube.com/watch?v=oMQn_M-9Kmw&t=201s (for GNAT pro, but
start at 2:45 to skip the Pro-specific stuff)

& from Joakim

https://www.youtube.com/watch?v=194rs1H6d64 (this is 3 years old!)


  parent reply	other threads:[~2018-01-14 18:03 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-06  0:54 Ada download sophia.adampour
2018-01-06 11:54 ` Brian Drummond
2018-01-06 12:42   ` sophia.adampour
2018-01-06 13:36     ` Simon Wright
2018-01-06 19:17       ` sophia.adampour
2018-01-06 20:05         ` Simon Wright
2018-01-08 12:21           ` sophia.adampour
2018-01-08 18:53             ` sophia.adampour
2018-01-08 20:13               ` Dennis Lee Bieber
2018-01-08 20:34               ` Anh Vo
2018-01-08 21:29             ` Simon Wright
2018-01-12  0:07               ` sophia.adampour
2018-01-12  9:39                 ` Simon Wright
2018-01-14 16:08                   ` sophia.adampour
2018-01-14 16:12                     ` sophia.adampour
2018-01-14 18:03                     ` Simon Wright [this message]
2018-01-15 18:42                       ` sophia.adampour
2018-01-15 19:13                         ` Dennis Lee Bieber
2018-01-15 20:16                           ` Simon Wright
2018-01-06 19:21       ` sophia.adampour
replies disabled

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