1. Home
  2. Languages
  3. How to Install GhostScript

How to Install GhostScript

This article explains how to install GhostScript as a N0C user.

GhostScript is used to convert jpg and pdf files. Many WordPress webmasters need to use it.

Procedure

Step 1 — Connexion to N0C

If you wish to perform the rest of the operations in SSH, please refer to the article how to create an SSH key and connect to an account remotely.

If you prefer, you can also follow the instructions in the article How to use the MG panel terminal.

Step 2 — Installation

Here are the terminal commands.

Downloading:

wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs950/ghostscript-9.50.tar.gz

Uncompress:

tar -xvf ghostscript-9.50.tar.gz

Move in the directory:

cd ghostscript-9.50

Ghostscript configuration for local account:

./configure --prefix=$HOME/ghostscript

Compilation and installation:

make
make install

Update PATH and libraries:

export PATH=$HOME/ghostscript/bin:$PATH
export LD_LIBRARY_PATH=$HOME/ghostscript/lib:$LD_LIBRARY_PATH
Updated on April 11, 2025

Related Articles