PSA: I’m not expert at all, I’m mainly a .net/js/scala on windows developer with some linux experience.

To use brew to install crystal and amber you NEED WSL 2.

Install Ubuntu 22.04 through the windows store. Then, switch it to WSL 2.

wsl --set-version Ubuntu-22.04 2

There’s some dependencies that are not indicated, some are needed some might be. This is just what worked for me.

First install brew

/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"

Brew will tell you to run this command to add it to the path

(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/renato/.profile
    eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

Brew also tells us to install build essential and gcc

sudo apt-get update
sudo apt-get install build-essential

brew install gcc

Install other dependencies that are needed for crystal and amber