Installing from packages
Hare is young, so packages are generally not yet available. Once the language is more commonly supported throughout the ecosystem, installing Hare from your system package manager will be the recommended approach.
For now, continue to the bootstrapping steps (which, thankfully, are quite easy):
Bootstrapping Hare from source
Bootstrapping Hare only takes a few minutes.
- A POSIX-compatible environment with a C11 compiler
- Our fork of qbe
Building the bootstrap compiler
- Obtain the bootstrap compiler source code
make check to compile and run the test suite as well.
This program is not designed to be installed to your system. Run
. harec.sh to
make it temporarily available in your shell before moving on to the next step.
Building the build driver
- Obtain the build driver source code
config.mkand edit to taste
make check to build & run the standard library test suite as
. hare.sh and the new hare toolchain will become available in your shell,
so you can begin using it without a formal installation.
If you wish to
install Hare to your system, run An install target is
not available yet — stick with
make install as root.
hare.sh to make it easier to keep your
system up-to-date while Hare matures.
Note: For the time being, you will also need to source
harec.sh from the
bootstrap compiler step before using Hare.