Is there a way to manually install a toolchain for Alire

Anyone familiar enough with Alire to help provide some steps to manually install a toolchain for Alire by hand. I was looking to get it running on my work computer. I finally got it approved through our IT process, but Alire fails to install any toolchains. I initially thought it was a permissions issue, so I installed Alire to a local folder and changed the settings so that the cache folder was made locally to that folder as well (instead of in AppData).

It still failed to install the toolchain, so it probably uses a temp directory somewhere I cannot control. So my next thought was to just manually install GCC. I took a look at the alire index to see where it got the toolchains from, but when I inspected the ZIP files linked there, they didn’t contain everything that my home computer’s alire toolchains had, so I think Alire generates some extra stuff when installing the toolchain.

Any direction on where to get the additional files needed to hand install the toolchains? Or any instructions that could help?

To install the toolchain

  • Fetch corresponding archive from GitHub release. Take, for instance, gnat-x86_64-windows64-14.2.0-1.tar.gz and gprbuild-x86_64-windows64-22.0.0-1.tar.gz
  • unzip it some where and add bin folders to the PATH. On Linux/Mac OS X Alire 2.0.2 unpack it to ~/.local/share/alire/toolchains. I don’t remember the Windows case.
  • If you have bin folders of the gnat you can configure alire with alr toolchain --select and choose “external” toolchain.
1 Like

Thanks! Any tips on how to install it in the alire ecosystem cache folders manually? It looks like there is a toml file that I need to generate.