The core team provides precompiled gleam binaries. Navigate to the GitHub release page for Gleam version you want to install. Under "assets" locate and download the tarball and sha256 checksum files for your operating system and processor archecture.

wget https://github.com/gleam-lang/gleam/releases/download/v1.14.0/gleam-v1.14.0-aarch64-unknown-linux-musl.tar.gz

wget https://github.com/gleam-lang/gleam/releases/download/v1.14.0/gleam-v1.14.0-aarch64-unknown-linux-musl.tar.gz.sha256

Verify the checksum is correct. If this command shows a warning then delete both files and start again.

sha256sum -c gleam-v1.14.0-x86_64-unknown-linux-musl.tar.gz.sha256

Extract the gleam program from the tarball.

tar xf gleam-v1.14.0-x86_64-unknown-linux-musl.tar.gz

Make the binary executable and place it in a directory on your PATH.

chmod +x gleam
mv gleam ~/.local/bin/