You have two options: download a pre-built release of the compiler, or building it from source.
Downloading a Release
Run this to download and install the latest release for Nix:
$ curl -o austral -L https://github.com/austral/austral/releases/latest/download/austral-linux
$ sudo install -m 755 austral /usr/local/bin/austral
Then you can invoke austral
from the command line.
Building from Source
Building with Nix
If you have Nix, this will be much simpler. Just:
$ nix-shell
$ make
And you’re done.
Building without Nix
Building the austral
compiler requires make
and the dune
build system for
OCaml, and a C compiler for building the resulting output. You should install
OCaml 4.13.0 or above.
First:
$ git clone git@github.com:austral/austral.git
$ cd austral
Next, install opam. On Debian/Ubuntu you can just do:
$ sudo apt-get install opam
$ opam init
Then, create an opam switch for austral and install dependencies via opam:
opam switch create austral 4.13.0
eval $(opam env --switch=austral)
opam install --deps-only -y .
Finally:
make
To build the standard library:
$ cd standard
$ make