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 — Connect in SSH

As the rest of the operations will be carried out in SSH, please see how to create an SSH key and connect to an account remotely.

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 September 18, 2024

Related Articles