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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,110dea972387d96c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT on Mac OS X Date: Wed, 06 Apr 2011 23:27:36 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx03.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="25000"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18InjbCfvYTeC9+tAp1OHsJqvTw7T/8GP8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:9shseP7uxn3ozfOiVJXvwKuNsc0= sha1:G9uT6sMG4OW7mKldAg1DllpI1lU= Xref: g2news2.google.com comp.lang.ada:19673 Date: 2011-04-06T23:27:36+01:00 List-Id: Achim writes: > Now I installed (or just unpacked) GNAT GPL 2010. > As stated in the readme, I gave ./doinstall and got the error message: > > "The make command could not be found on your PATH. ..." > > gps runs and gnatmake starts to work, but I think the "installation" > is not as required. > > So I think there are a lot prerequisites left out in the explanation > that I need as a relative Mac newbe. I have the following questions: > > 1) What do I have to install (e.g. XCode Version?) for GNAT (including > gnu/make) to become fully functional? I remember former posts stating > that some GNAT versions are not compatible with some XCode versions or > that GNAT has to be installed in certain folders to avoid > inconsistencies. Yes, it's Xcode. I'm running 3.2.6 (there was a recent update) under 10.6.7. Because I run several versions of GNAT I install it in version-specific places, eg /opt/gnat-gpl-2010 and make sure that (eg) /opt/gnat-gpl-2010/bin is first on my PATH. A little experiment here seems to indicate that the PATH you set up in ~/.bash_profile_common is the one that GPS uses to find GNAT (it's not so easy with Emacs, my preferred development environment; need to set up the right path in ~/.emacs). > 2) Next, I need the posix binding (florist). As there is none on the > libre site, can I just build the Linux version from sources? I haven't used this, so perhaps someone else can help. I do expect that you can build from source (the Libre sources aren't deliberately OS-specific, it's just that if AdaCore haven't released a binary for a particular OS they don't make the sources available under that OS). > less important: > > 3) I want to make gps a normal executable and connect it with all > *.gpr, *.ads, *.adb files. When clicking on one of these files in the > finder, gps should come up. I suspect this is trickier since GPS is an X11 application. I think it has to be possible (the GIMP does it, for example). > I've some experience using GNAT on different Linuxes and would be glad > to hear, that you can work similarly on Mac OS. It works fine for me, though I've forgotten many of the hurdles I've had to cross! There are other Mac users around here; also, the GNAT-OSX mailing list at https://hermes.gwu.edu/archives/gnat-osx.html .