This guide will help you install Ghostscript (gs10.03.1) locally on your server or instance without needing sudo
privileges. The installation will be done in your home directory.
Download the source code for Ghostscript version 10.03.1 using wget
:
wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10031/ghostscript-10.03.1.tar.gz
tar -zxvf ghostscript-10.03.1.tar.gz
cd ghostscript-10.03.1
./configure --prefix=$HOME/ghostscript
make
make install
export PATH=$HOME/ghostscript/bin:$PATH
gs --version
You should see the output like this 10.03.1