From: sophia.adampour@gmail.com
Subject: Re: Ada download
Date: Mon, 15 Jan 2018 10:42:25 -0800 (PST)
Date: 2018-01-15T10:42:25-08:00 [thread overview]
Message-ID: <bbb99da5-20b5-43e4-b38d-872bee236839@googlegroups.com> (raw)
In-Reply-To: <ly6084b9m8.fsf@pushface.org>
søndag 14. januar 2018 19.04.03 UTC+1 skrev Simon Wright følgende:
> 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!)
Thank you, Tim! This is really helpful:-)
When I use the GPS and follow Joakims Youtube-video, I get this error message:
gprbuild -d -P/Users/adampour/Desktop/src_ada/Hello_World/default.gpr /Users/adampour/Desktop/src_ada/Hello_World/src/main.adb
Compile
[Ada] main.adb
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
gprbuild: * compilation phase failed
[2018-01-14 17:30:00] process exited with status 4, elapsed time: 00.56s
Does anyone here understand what is wrong? My classmates could not figure out either..
next prev parent reply other threads:[~2018-01-15 18:42 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
2018-01-15 18:42 ` sophia.adampour [this message]
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