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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada download Date: Sun, 14 Jan 2018 18:03:59 +0000 Organization: A noiseless patient Spider Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="41b8c0be80d7c00a9c849d242e0056d2"; logging-data="1983"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VnT+3y2Ak9qNv74kwEhziPx9QSKiDwfU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:0KYfYVXBDGIviOvhUVFmPYrZov8= sha1:7eaHH7Ksj8P7vgpgs5JAkwfbEj0= Xref: reader02.eternal-september.org comp.lang.ada:49898 Date: 2018-01-14T18:03:59+00:00 List-Id: 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!)