GP 2

The Graph Programming Language

Installing GP 2 via Docker

To run the compiler via Docker, you need the following Ubuntu packages (or the equivalent in your distribution): bison, flex, libperl-dev, libgtk2.0-dev, libjudy-dev, and pandoc.

This installation method requires Docker. The program can be found in your distribution’s software repository or on the Docker website. For institutions, Rootless Docker may be the preferred choice since it does not allow users to execute programs as a root user.

To set up GP 2 via Docker, use the command below as a superuser to run a GP 2 program. The first time you run the command, Docker will download the necessary files for executing GP 2 programs. Subsequently, programs can be run offline.

docker run -v ${PWD}:/data <program> <input graph>

Replace <program> with the relative path to your program from your working directory, and <input graph> with the relative path to your input graph.