Compiling Lus
Compiling Lus is a straightforward process. You will need the following tools to compile the runtime:
- The Lus source code, which can be downloaded from its repository.
- A C compiler (gcc or clang recommended).
- The Meson build system.
After downloading and extracting the source code, navigate to the /lus directory and run the following commands to prepare, compile, and execute the runtime:
meson setup build
meson compile -C build
# On macOS and Linux.
./build/lus
# On Windows.
build\lus.exe
The binary will be placed in the build directory and is ready to be used without any further configuration. Generally, you will want to place it in a directory that is in your system’s PATH so you can invoke it from the command line anywhere:
- On macOS and Linux, you can place it in the
/usr/local/bindirectory. - On Windows, you should create a new directory for Lus and follow these instructions to add it to your system’s
PATH.