Install libg2-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libg2-dev
Description:
g2 2D graphics library (development files)
g2 is an easy to use, portable and powerful 2D graphics library. It provides a comprehensive set of functions for simultaneous generation of graphical output to X11 and graphic formats PNG, JPEG and PostScript. g2 is written in ANSI C and provides Fortran and Perl interfaces. . This package provides static library and header files for g2.
Homepage: https://github.com/danielrmeyer/g2/
Version: 0.72-7
Section: universe/libdevel