Grew installation

Grew is implemented with the Ocaml language. It 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.

You will need to install:

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

If you just need to upgrade your installation, please consult the Upgrade page.

⚠️ If you run into trouble using the instructions of this page, feel free to open an issue on GitLab or to contact the developer.

Step 1: Install opam

Grew requires opam version 2.0.0 or higher.

Linux

In most Linux recent distribution, version 2 can be installed from default packages.

apt-get install opam

The following commands installs a few other needed packages:

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

Mac OS X

⚠️ Brew is an alternative only if you do not plan to use the GUI (the package webkit-gtk required by the GUI is not available through Brew).

Step 2: Setup opam

Run: opam init and follow instructions (answer y to different questions).

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

Step 3: Install the Grew software

Run the commands:

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

To verify your installation:

Step 4: The Python library

With Python 3, use the following command: pip install grew

Note: depending on your local installation, you may have to use pip3 or pip3.5.

Other available installations


Addendum

If opam 2 in not available in your favorite package manager, you should be able to install version 2.0.6 with the following commands:

For more information, please consult opam installation page.