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
To install GhostScript, copy and paste this text into a terminal (use the most recent version if possible):
wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs950/ghostscript-9.50.tar.gz
tar -xvf ghostscript-9.50.tar.gz
cd ghostscript-9.50
./configure --prefix=$HOME/ghostscript
make
make install
echo "export PATH=$HOME/ghostscript/bin:$PATH" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=$HOME/ghostscript/lib" >> ~/.bashrc
source ~/.bashrc