Install libgs-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libgs-dev
Description:
interpreter for the PostScript language and for PDF - Development Files
GPL Ghostscript is used for PostScript/PDF preview and printing. Usually as a back-end to a program such as ghostview, it can display PostScript and PDF documents in an X11 environment. . This package provides the development files for the GPL Ghostscript library which makes the facilities of GPL Ghostscript available to applications.
Homepage: https://www.ghostscript.com/
Version: 9.22~dfsg+1-0ubuntu1.1
Section: text