# Getting lost already

**URL:** <https://forum.ada-lang.io/t/getting-lost-already/4913>\
**Category:** Help\
**Tags:** gnat\
**Created:** [November 3, 2026, 11:48pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913 "2026-11-03T23:48:51Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![azcromntic](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@azcromntic](https://forum.ada-lang.io/u/azcromntic)\
**Post date:** [November 3, 2026, 11:48pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/1 "2026-11-03T23:48:51Z")

</div>

I’ve spent a few hours now trying to figure out where I download the compiler. What I keep finding is recommendations to download Alire (did I get that right?), or GNATStudio. I’ve seen sourceforge for GNAT, but I don’t trust that I’d be downloading the right one, especially if I want to use my old macbook air i3 from 2020.

I just want to download gnat like I used to, and edit files, and do compilations from the command line. Is that not possible now? Must I go to something like Alire or GNATStudio? Why?

Having said that, I do have an old (like 2004) Dell laptop running FreeBSD on it. Although, I’d like to use that macbook air i3. Is there a simple download for the macbook? I mean, FreeBSD I just use the package manager and get gnat, although I don’t think it’s very recent gnat.

I almost forgot, xcode for mac. There’s a little info at [iOS Topics — GNAT User's Guide Supplement for Cross Platforms 24.0w documentation](https://docs.adacore.com/gnat_ugx-docs/html/gnat_ugx/gnat_ugx/ios_topics.html). The command line tools mentioned, those will allow me to just compile from the command line? But, then I’d have to do all those other things to “deliver” the product? I’m just trying to refresh my Ada knowledge, and investigate changes that Ada 2012, and 2022 made.

Please advise.

---

<div class="post-metadata">

**Author:** ![JeremyGrosser](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/jeremygrosser/32/3_2.png) [@JeremyGrosser](https://forum.ada-lang.io/u/JeremyGrosser)\
**Post date:** [November 4, 2026, 12:13am UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/2 "2026-11-04T00:13:13Z")

</div>

Alire’s gonna handle setting up all of the paths and stuff for you, but if you’d prefer to do that yourself for some reason, you can get the toolchain tarballs here, under Assets:

> **[Releases · alire-project/GNAT-FSF-builds](https://github.com/alire-project/GNAT-FSF-builds/releases)**
>
> Builds of the GNAT Ada compiler from FSF GCC releases - alire-project/GNAT-FSF-builds

---

<div class="post-metadata">

**Author:** ![rachelwilson](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@rachelwilson](https://forum.ada-lang.io/u/rachelwilson)\
**Post date:** [November 4, 2026, 12:06pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/3 "2026-11-04T12:06:19Z")

</div>

the xcode command line tools on their own wont do it, theyre just apples c stuff, you still need a gnat build. once thats on your path gnatmake from the terminal works fine, no studio or alire needed

---

<div class="post-metadata">

**Author:** ![azcromntic](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@azcromntic](https://forum.ada-lang.io/u/azcromntic)\
**Post date:** [November 4, 2026, 3:26pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/4 "2026-11-04T15:26:41Z")

</div>

Seems like there are multiple places to get gnat. JeremyGrosser mentions alire github, then there’s [https://sourceforge.net/projects/gnuada/](https://sourceforge.net/projects/gnuada/), and I want to say I saw a third place on sourceforge. Is there an official list of versions so that I know what to look for on each of the repositories?

Also, on Alire site, in MacOS section, it says “Alire provides GNAT toolchains hosted on x86-64 for macOS. If those toolchains do not work for you, or if you are on another host architecture like the Apple M1, you have the option to look at the GNAT toolchains from the community.”  
So that’d work for my i3 mac, but does that mean I need to do something special if I want it on my M4 mac mini?

---

<div class="post-metadata">

**Author:** ![Blady](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/b/e9bcb4/32.png) [@Blady](https://forum.ada-lang.io/u/Blady)\
**Post date:** [November 4, 2026, 9:05pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/5 "2026-11-04T21:05:51Z")

</div>

For getting Ada tools for Mac, the main issue is what is your macOS version (and Xcode or CLT associated version).  
Then you’ll find an appropriate version either on Alire (for recent versions) or Source Forge (for older versions).  
II maintain a table to help with making the right choice.  
If you give your macOS and Xcode or CLT versions, I could guide you.

---

<div class="post-metadata">

**Author:** ![csagaert](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/csagaert/32/590_2.png) [@csagaert](https://forum.ada-lang.io/u/csagaert)\
**Post date:** [November 4, 2026, 11:45pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/6 "2026-11-04T23:45:08Z")

</div>

Today the official sources for the latest GNAT compiler are the GCC sources (which includes GNAT FSF).

The [GNAT-FSF-builds](https://github.com/alire-project/GNAT-FSF-builds/releases) repo that Jeremy mentioned provides a public build of this GNAT version, including a build for macOS. This build will need the macOS “Command Line Tools” component to be installed as well (it provides the linker and system libraries).

---

<div class="post-metadata">

**Author:** ![krischik](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/krischik/32/420_2.png) [@krischik](https://forum.ada-lang.io/u/krischik)\
**Post date:** [November 5, 2026, 6:48am UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/7 "2026-11-05T06:48:03Z")

</div>

> [@azcromntic](#):
>
> What I keep finding is recommendations to download Alire (did I get that right?), or GNATStudio.

Alire is the way to go for Windows, Linux and macOS.

SourceForge is outdated and from a time from before official macOS support. It’s legacy compiler for legacy operating systems.

For macOS you need the command line tools for any programming which produces executables. It’s one of the quirks of macOS.

Lastly it’s **and** one of: GNATStudio or VSCode or VIM. You need something to edit your code and those three have Ada support.

---

<div class="post-metadata">

**Author:** ![azcromntic](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@azcromntic](https://forum.ada-lang.io/u/azcromntic)\
**Post date:** [November 5, 2026, 4:00pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/8 "2026-11-05T16:00:56Z")

</div>

![image](https://forum.ada-lang.io/uploads/default/original/2X/6/6f3f9bf101e4abbb7d4d9d6d535c6f0fe1422661.png)

I’m going to go ahead and install xcode and clt. VIM would be my first choice. I’ll try to find that. Then I post back.

Thank you ALL so much for the help!!

---

<div class="post-metadata">

**Author:** ![azcromntic](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@azcromntic](https://forum.ada-lang.io/u/azcromntic)\
**Post date:** [November 5, 2026, 4:34pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/9 "2026-11-05T16:34:16Z")

</div>

That was quick. Xcode installed. softwareupdate --history reveals

Command Line Tools for Xcode 27.2 27.2 11/03/2026, 15:55:10  
macOS 27.2 27.2 11/03/2026, 17:22:24

---

<div class="post-metadata">

**Author:** ![Blady](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/b/e9bcb4/32.png) [@Blady](https://forum.ada-lang.io/u/Blady)\
**Post date:** [November 5, 2026, 8:43pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/10 "2026-11-05T20:43:20Z")

</div>

Well, you have lastest macOS / CLT, so, you can use Alire.  
Download the last version of [alr](https://github.com/alire-project/alire/releases/tag/v2.1.1) tool for macOS aarch64.  
With Terminal, execute the following instructions:  
(xxxx your selected version)

```ada
% cd ~/Download
% unzip alr-2.xxxx-macos.zip
% cd alr-2.xxxx-macos/bin
% xattr -r -d com.apple.quarantine alr
% mkdir $HOME/bin # if not already created
% cp -p alr-2.xxxx-macos/bin/alr $HOME/bin
% PATH=$HOME/bin:$PATH
% export MACOSX_DEPLOYMENT_TARGET=26.0 # see [macOS 27 issue](https://github.com/alire-project/GNAT-FSF-builds/issues/113)

```

Install the GNAT toolchain:

`% alr toolchain --select`

Follow the instructions and choose gnat\_native 16.2.0-pre0 see [macOS 27 isssue](https://github.com/alire-project/GNAT-FSF-builds/issues/112).

You are ready:

```ada
% alr get hello
% cd hello_xxxx
% alr run

```

You can get GNAT Studio for macOS on Source Forge for the [last built version](https://sourceforge.net/projects/gnuada/files/GNAT_GPL%20Mac%20OS%20X/2026-ventura/).  
It is for old macOS and intel but it should work on yours.

Tell me if it isn’t the case.

Enjoy.

---

<div class="post-metadata">

**Author:** ![krischik](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/krischik/32/420_2.png) [@krischik](https://forum.ada-lang.io/u/krischik)\
**Post date:** [November 7, 2026, 9:29am UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/11 "2026-11-07T09:29:45Z")

</div>

> [@azcromntic](#):
>
> VIM would be my first choice

For VIM you should install [GitHub - krischik/vim-ada: Complete Ada-Mode as Vim-Ball or Tar.bz2 · GitHub](https://github.com/krischik/vim-ada) - that’s the up to date version. I still have to update the upstream.

---

<div class="post-metadata">

**Author:** ![azcromntic](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@azcromntic](https://forum.ada-lang.io/u/azcromntic)\
**Post date:** [November 15, 2026, 4:27pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/12 "2026-11-15T16:27:08Z")

</div>

Life got in the way…  
I installed xcode, got the CLT, read a bit about using xcode for Ada, decided I’m too old for all that, uninstalled xcode, checked and I still have the CLT on my machine.

I’ve dowloaded Alire, and also gnat-aarch64-darwin-16.2.0-pre0.tar.gz (for my mac mini m4). I’m probably going to use Alire, but, out of curiosity, I want to muck around with gnat-aarch64-darwin-16.2.0-pre0.tar.gz. I think that file came from the GNAT-FSF-builds site (I need to check that, and read any instructions it has there).

Thank you all for your help!!

Edit: I see now that gnat-aarch64-darwin-16.2.0-pre0.tar.gz came from [GitHub - AdaCore/gnat-community-archives · GitHub](https://github.com/AdaCore/gnat-community-archives) , and is for my older intel chip macbook. I’m still going to read it.

Edit: And after poking around to find the dmg file, I see the archive says “This repo provides links to the archives of the discontinued GNAT Community toolchain. For new non-industrial projects, we recommend the use of community-provided tools, starting with the [Alire package manager](https://alire.ada.dev/).”. So, I’m guessing, I need to go there instead.

I can see that I can get both the x86 and “m4” version, and some “universal” version, at that release page, [Releases · alire-project/alire · GitHub](https://github.com/alire-project/alire/releases)

 ![image](https://forum.ada-lang.io/uploads/default/original/2X/7/70674a91c0f171bf58335d8cac18646806e94fd0.png)

---

<div class="post-metadata">

**Author:** ![azcromntic](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@azcromntic](https://forum.ada-lang.io/u/azcromntic)\
**Post date:** [November 15, 2026, 5:28pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/13 "2026-11-15T17:28:50Z")

</div>

Okay, so downloading and setting up alr was surprisingly easy. I was following [Alire - Docs](https://alire.ada.dev/docs/#introduction)  
One thing to note, and I hope I didn’t mess something up, but I used the -c flag when doing xattr of the alr executable instead of the -d flag, but I did provide the filename, and the computer is still running, so I’m under the impression I only removed the attribute for alr, and not for everything as the help info for xattr suggests. Anyway…

I did the hello instructions and now I’m a bit confused. In the output below it seems like alr might be downloading and installing some “tools”. Where are these new tools at on my filesystem?

 ![image](https://forum.ada-lang.io/uploads/default/original/2X/d/d10f8673a7cf05bdab3efbcf6ac66259b4673a96.png)

---

<div class="post-metadata">

**Author:** ![cantanima](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/cantanima/32/121_2.png) [@cantanima](https://forum.ada-lang.io/u/cantanima)\
**Post date:** [November 15, 2026, 6:28pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/14 "2026-11-15T18:28:50Z")

</div>

Try looking in `$HOME/.alire/bin`. If I read the docs correctly, _and_ if I see my folder correctly, that’s where mine exist:

```bash
$ ls ~/.alire/bin/
gnatdoc gnatmetric gnatprove gnattest gprclean gprinspect gprls gprslave
gnatformat gnatpp gnatstub gprbuild gprconfig gprinstall gprname utils-var_length_ints-test

```

---

<div class="post-metadata">

**Author:** ![azcromntic](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@azcromntic](https://forum.ada-lang.io/u/azcromntic)\
**Post date:** [November 15, 2026, 6:57pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/15 "2026-11-15T18:57:37Z")

</div>

Thanks for the tip. I used your tip to help find it. I found mine in /Users/myuser/.local/share/alire/toolchains/gnat\_native\_16.2.0\_832e08ad/bin. And, since my last post, I’ve learned on [Alire - Docs](https://alire.ada.dev/docs/#introduction) there is a command, alr printenv, that shows all of the “paths”. I ran it earlier, but didn’t realize what the information was. Now I do.

---

<div class="post-metadata">

**Author:** ![cantanima](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/cantanima/32/121_2.png) [@cantanima](https://forum.ada-lang.io/u/cantanima)\
**Post date:** [November 15, 2026, 7:25pm UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/16 "2026-11-15T19:25:21Z")

</div>

> [@azcromntic](#):
>
> `alr printenv`

That’s the command you want. I couldn’t remember, and for some reason I didn’t notice it when I tried `alr --help`.

---

<div class="post-metadata">

**Author:** ![michael-hardeman](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/michael-hardeman/32/1013_2.png) [@michael-hardeman](https://forum.ada-lang.io/u/michael-hardeman)\
**Post date:** [November 17, 2026, 5:07am UTC](https://forum.ada-lang.io/t/getting-lost-already/4913/17 "2026-11-17T05:07:35Z")

</div>

download the `alr` binary and put it somewhere on your `PATH` environment variable. Add `~/.alire/bin` to your `PATH` as well.

`alr install gnat`  
`alr install gprbuild`  
`alr install gnatprove`  
`alr toolchain --select`
