I need to use the ghostscript inkcov device on my CentOS server. The device is said to be available on GS versions 9.05 and newer. However, yum install ghostscript installs version 8.70.
What is the easiest way to get the inkcov device to work?
I need to use the ghostscript inkcov device on my CentOS server. The device is said to be available on GS versions 9.05 and newer. However, yum install ghostscript installs version 8.70.
What is the easiest way to get the inkcov device to work?
It turned out that you can easily download a binary from the repository, unpack it on the file-system and then just update the PATH variable. After that the application works fine.
In case anyone else comes across this:
I found this link more helpful. It lists different versions, and then you can download a convenient *.tar.gz to unpack / install.
I did wget on the URL for the link ghostscript-9.10.tar.gz. For some reason it saved to a file called download, but it is a .tar.gz. So I unpacked with tar -zxvf download
cd into the new directory, then it's the classic:
./configure note that you can add --prefix=path to specifiy the installation directory
make
make install
This link from ghostscript's site was very helpful to me for installation
In CentOS 8 there is an easier way to do this installation:
dnf --enablerepo=PowerTools install ghostscript
I think you can try with this gist, which worked for me: https://gist.github.com/masbog/a84e9122f9bca6b83e47
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