We have tried to repeatedly tried to compile ghostscript by source as indicated. We are still not seeing the thumbnails.
We are running:
Ubuntu 16.04.4 (yes, we are aware it is old)
Version 2.5.1 of Omeka
We realized that ghostscript was being installed under /usr/loca/bin and not /usr/bin/. We ran the command with the prefix: ./configure --prefix=/usr/bin
This created another directory under /usr/bin, so /usr/bin/bin with all of the new ghostscript compilations. We then made a backup of gs under /usr/bin and moved the gs from /usr/bin/bin to that file.
As for your issues with installing from source… the prefix doesn’t include the “bin” part; the proper prefix to install binaries under /usr/bin is just /usr . Just copying the binary’s location might not work well as other things like libraries could have been installed underneath weird paths like /usr/bin/lib given the way you set it up.
That being said, I generally wouldn’t recommend installing like that to /usr, particularly as here where you have files from your package manager already there. Simply overwriting them is likely to cause issues at some point, if not immediately. You can tell ImageMagick to use gs located in a different directory by just editing the delegates.xml file (should be located under /etc/ImageMagick or somewhere like that) and replacing references to gs with /usr/local/bin/gs (assuming you installed it there).
O.K…when I run convert on a PDF this is what I receive:
sudo convert UWPAC124_19831110.pdf UWPAC124_19831110.jpg
convert: not authorized UWPAC124_19831110.pdf' @ error/constitute.c/ReadImage/412. convert: no images definedUWPAC124_19831110.jpg’ @ error/convert.c/ConvertImageCommand/3210.
I haven’t used convert in a very long time, so I’m not sure if the syntax is correct.
I couldn’t find a path in delegates.xml. When I grep for /usr/bin/local/gs in the xml under /etc/ImageMagick-6, nothing comes up in any of the .xml files, including delegate.