Grew installation

Grew is implemented using the Ocaml language and can be installed on Linux or Mac OS X (installation on Windows should be possible, but this is untested). A Python binding is also available, which can be found here.

You have to install:

  1. opam which is the standard package manager for Ocaml
  2. ocaml which can be installed by opam
  3. grew an related libraries which are available as opam packages

If you just need to upgrade your installation, please refer to the Upgrade section.

⚠️ If you encounter any issues while using the instructions on this page, please do not hesitate to open an issue on GitHub.

Step 1: Install opam

Grew requires opam version 2.0.0 or higher. In case of trouble installing opam, please consult opam installation page.

Linux

Opam version 2 can be installed from default packages in most recent Linux distributions.

apt-get install opam

The following commands install a few other necessary packages:

apt-get install wget m4 unzip librsvg2-bin curl bubblewrap

Mac OS X

Step 2: Setup opam

Run:

Check that ocaml is installed with ocamlc -v. This gives you the version of Ocaml installed. This should be 4.13 or higher.

To add the Grew-specific opam repository, run the following command:

opam remote add grew "http://opam.grew.fr"

Step 3: Install the Grew software

opam install grew

To verify your installation:

NB: If you want to install the Python library, see here.

Grew upgrade

To upgrade to a newer version of Grew, run the following commands:

opam update
opam upgrade

The latest version is 1.15. You can check your version with

opam list | grep grew

you should obtain (the third line may not appear if you haven’t installed the Python library backend):

grew                          1.15.0      Grew system
grewlib                       1.15.0      The main library for the Grew system
grewpy_backend                0.5.2       The Ocaml backend for the `grewpy` Python lib