Skip to content

Instantly share code, notes, and snippets.

@ecr007
Forked from masbog/libgs_install.sh
Last active January 9, 2018 16:20
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 ecr007/38f6963586c2fbcd8937a8246f2cf9f9 to your computer and use it in GitHub Desktop.
Save ecr007/38f6963586c2fbcd8937a8246f2cf9f9 to your computer and use it in GitHub Desktop.
Installing ghostscript 9 CentOS 6.5 with shared Library
curl -O http://downloads.ghostscript.com/public/ghostscript-9.22.tar.gz &&
tar -xzf ghostscript-9.22.tar.gz &&
cd ghostscript-9.22 &&
./configure &&
make install &&
make so &&
cp ghostscript-9.22/sobin/libgs.so.9.22 /usr/lib &&
ln -s /usr/lib/libgs.so.9.22 /usr/lib/libgs.so &&
mkdir -p /etc/ld.so.conf.d/ &&
echo "/usr/lib/libgs.so" > /etc/ld.so.conf.d/libgs.conf &&
ldconfig &&
echo "Installing ghostscript finish" &&
gs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment