Skip to content

Instantly share code, notes, and snippets.

@chvck
Last active May 25, 2017 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chvck/2c11538691fc3a256f8407154c37f5bb to your computer and use it in GitHub Desktop.
Save chvck/2c11538691fc3a256f8407154c37f5bb to your computer and use it in GitHub Desktop.
#!/bin/bash
GHOSTCRIPT_VER=9.21
wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs921/ghostscript-$GHOSTCRIPT_VER.tar.gz
tar -xvzf ghostscript-$GHOSTCRIPT_VER.tar.gz
rm ghostscript-$GHOSTCRIPT_VER.tar.gz
cd ghostscript-$GHOSTCRIPT_VER
./configure
make
sudo make install
sudo rm /usr/bin/gs
sudo ln -s /usr/local/bin/gs /usr/bin/gs
cd ..
rm -rf ghostscript-$GHOSTCRIPT_VER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment