I have installed Ghostscript on centos7 server.
When I simply command "gs" it return following
GPL Ghostscript 9.25 (2018-09-13) Copyright (C) 2018 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. GPL Ghostscript 9.25: Cannot open X display `(null)'. **** Unable to open the initial device, quitting.
When I try to make thumbnail to pdf by following command
gs -sDEVICE=pngalpha -dFirstPage=1 -dLastPage=1 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r200 -o tmp/foo.png bar.pdf
it return following result GPL Ghostscript 9.25 (2018-09-13) Copyright (C) 2018 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 1. Page 1 Segmentation fault
above both command working fine when I run these command on different system.
Help to figure out issue on centos system.