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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.201.149 with SMTP id z143mr3849784iof.129.1516041746501; Mon, 15 Jan 2018 10:42:26 -0800 (PST) X-Received: by 10.157.1.22 with SMTP id 22mr184220otu.0.1516041746271; Mon, 15 Jan 2018 10:42:26 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!w142no1812546ita.0!news-out.google.com!b73ni15835ita.0!nntp.google.com!g80no2275955itg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 15 Jan 2018 10:42:25 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=195.83.10.83; posting-account=HX-a2AoAAAAsVMeMwPR6BDHiL1Oe3kHI NNTP-Posting-Host: 195.83.10.83 References: <397e0653-1512-4111-b321-edde0c024bc8@googlegroups.com> <2462e55d-57d1-4753-b3e2-cd0a0b0f28e0@googlegroups.com> <9bedbd9c-94d3-4aaa-ab92-0b2e8648e403@googlegroups.com> <9c4d5a06-086d-41b0-96c8-27fbf1c71b5d@googlegroups.com> <3ad76710-0a22-4aa0-91e7-1da8fcd6f357@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ada download From: sophia.adampour@gmail.com Injection-Date: Mon, 15 Jan 2018 18:42:26 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 918655339 X-Received-Bytes: 5348 Xref: reader02.eternal-september.org comp.lang.ada:49927 Date: 2018-01-15T10:42:25-08:00 List-Id: s=C3=B8ndag 14. januar 2018 19.04.03 UTC+1 skrev Simon Wright f=C3=B8lgende= : > sophia.adampour@gmail.com writes: >=20 > > fredag 12. januar 2018 10.39.09 UTC+1 skrev Simon Wright f=C3=B8lgende: > >> sophia.adampour@gmail.com writes: > >>=20 > >> > 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? > >>=20 > >> No, it just means that gps isn't on your PATH. > >>=20 > >> 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 > >>=20 > > I cannot see the file, it will only download because it's a zip-file > > Dropbox states >=20 > 1) go to https://www.dropbox.com/s/5gd84jl255povju/GPS.zip?dl=3D0 and > download the file (GPS.zip). >=20 > 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). >=20 > 3) double-click on this GPS icon to start up GPS. >=20 > 4) when you are happy, drag the GPS icon into the Applications folder. >=20 >=20 > >>=20 > >> 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 start= up > >> scripts, probably ~/.bash_profile_common . > >>=20 > >>I am sorry, but where do I find this line? Seriously, I am so sorry > >> for all these stupid questions > >>=20 > >> > Btw. Does anyone know about any tutorials on how to use this GPS wit= h > >> > Mac Terminal? :-) > >>=20 > >> (a.k.a. "from the command line") > >>=20 > >> 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. > >>=20 > >> If you want to compile a file e.g. hello.adb from the command line, th= en > >> (assuming your PATH is set up as above!) you say > >>=20 > >> $ gnatmake hello.adb > > =20 > > I say this in the Mac terminal, right? >=20 > Yes. >=20 > 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. >=20 > 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. >=20 > https://www.youtube.com/watch?v=3DQesNHCKNxFM (a couple of years old) >=20 > https://www.youtube.com/watch?v=3DoMQn_M-9Kmw&t=3D201s (for GNAT pro, but > start at 2:45 to skip the Pro-specific stuff) >=20 > & from Joakim >=20 > https://www.youtube.com/watch?v=3D194rs1H6d64 (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 messa= ge: gprbuild -d -P/Users/adampour/Desktop/src_ada/Hello_World/default.gpr /User= s/adampour/Desktop/src_ada/Hello_World/src/main.adb Compile [Ada] main.adb xcrun: error: invalid active developer path (/Library/Developer/CommandLine= Tools), 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 o= ut either..