Using Alire on WSL

Just a heads up on using Alire on WSL2, from what I’m seeing it’s faster than using Alire native on Windows (well, it’s not really native). The Linux version of Gnat Studio also works. Here’s a couple of alr build tests:

          On WSL2 Ubuntu-22.04            On Native Windows 11
Hello      0.53 seconds.                   0.77 seconds.
Aws crate 49.72 seconds.                  70.14 seconds.

I’d say not bad!

2 Likes

Are you using the same version on both or different versions? On Windows, the default download is Alire 2 but on WSL, if you just use sudo apt install, it defaults to Alire 1.2. You need to do it “the other way” to get Alire 2.

The package managers aren’t really as up-to-date as would be ideal, that’s going to be the case on Ubuntu and Debian too

You could still do it in one command

curl --proto '=https' -sSf https://www.getada.dev/init.sh | sh

Just for context, that command from @AJ-Ianozi comes from a website he setup to ease the installation of Alire located here: https://www.getada.dev/

In case anyone wanted to see alternatives for other systems they may have

@AJ-Ianozi I hope you don’t mind the site promotion too much.

2 Likes