Skip to content

Instantly share code, notes, and snippets.

@minhbang
Forked from masbog/libgs_install.sh
Created January 7, 2016 09:37
Show Gist options
  • Save minhbang/e14ac060f360b176f332 to your computer and use it in GitHub Desktop.
Save minhbang/e14ac060f360b176f332 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.14.tar.gz &&
tar -xzf ghostscript-9.14.tar.gz &&
cd ghostscript-9.14 &&
./configure &&
make install &&
make so &&
cp ghostscript-9.14/sobin/libgs.so.9.14 /usr/lib &&
ln -s /usr/lib/libgs.so.9.14 /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