Check if you have Ghostscript installed:
gs --version
And install the ghostscript library on your system
ghostscript