To install Gera on a UNIX-like system, the following is required:
curlis present.- The JVM (version 17+) is present (
javaor theGERA_JAVAvariable). - A C compiler is present (
clang,gcc,ccor theGERA_CCvariable). - Git is present (
gitor theGERA_GITvariable). ~/.geradoes not exist (this is where it will be installed to).
To then install Gera, simply run the following command:
curl https://raw.githubusercontent.com/geralang/geraup/main/install.sh | sh
To install Gera on Windows, the following is required:
curlis present.C:\Program Files\Geradoes not exist (this is where it will be installed to).
To then install Gera, do the following:
- Download
geraup-win.exefrom the latest release. - Run the downloaded executable as an administrator.
To be able to build / run any Gera code, the following is also required:
- The JVM (version 17+) is present.
- A C compiler is present (if you want to build Gera code with the C target).
- Git is present.
By default, gerap will assume that the JVM is available as java, the C compiler is available as cc and Git is available as git. All of these assumptions can be overwritten:
- Specify the path to the JVM using the
GERAP_JAVA_PATHenvironment variable - Specify the path to the C compiler using the
GERAP_CC_PATHenvironment variable - Specify the path to Git using the
GERAP_GIT_PATHenvironment variable.
