在jenkins上运行ghostscript并不显示ps文件

时间:2017-04-09 03:33:24

标签: jenkins terminal ghostscript jenkins-pipeline rhel

我在.ps(pdf)文件中使用以下命令运行ghostscript以在终端上显示它:

gs -sDEVICE=display -dNOPAUSE graph.ps

其中graph.gs是包含图形的ps文件,gs = ghostscript(https://ghostscript.com/)。我是ghostscript的新手所以忽略任何愚蠢。 当我在詹金斯上工作时,我得到以下内容:

GS>+ gs -sDEVICE=display -dNOPAUSE graph.ps
GPL Ghostscript 9.07 (2013-02-14)
Copyright (C) 2012 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can't find (or can't open) font file /usr/share/ghostscript/9.07/Resource/Font/NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Can't find (or can't open) font file /usr/share/ghostscript/9.07/Resource/Font/NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Querying operating system for font files...
Loading NimbusRomNo9L-Regu font from /usr/share/fonts/default/Type1/n021003l.pfb... 3508768 2086694 2448692 1153761 2 done.
Loading NimbusRomNo9L-ReguItal font from /usr/share/fonts/default/Type1/n021023l.pfb... 3552240 2216374 2670716 1352857 2 done.
Loading NimbusRomNo9L-Medi font from /usr/share/fonts/default/Type1/n021004l.pfb... 3699560 2367722 2670716 1358308 2 done.
Loading NimbusRomNo9L-MediItal font from /usr/share/fonts/default/Type1/n021024l.pfb... 3843664 2501778 2670716 1363735 2 done.
Loading NimbusSanL-Regu font from /usr/share/fonts/default/Type1/n019003l.pfb... 3967136 2627944 2670716 1369394 2 done.
Loading NimbusSanL-ReguItal font from /usr/share/fonts/default/Type1/n019023l.pfb... 4087536 2738966 2670716 1374709 2 done.
Loading NimbusSanL-Bold font from /usr/share/fonts/default/Type1/n019004l.pfb... 4189080 2849279 2690900 1383454 2 done.
Loading NimbusSanL-BoldItal font from /usr/share/fonts/default/Type1/n019024l.pfb... 4309544 2961260 2690900 1388681 2 done.
Loading NimbusMonL-Regu font from /usr/share/fonts/default/Type1/n022003l.pfb... 4453408 2977287 2659800 1099632 2 done.
Loading NimbusMonL-ReguObli font from /usr/share/fonts/default/Type1/n022023l.pfb... 4513832 3098942 2659800 1105017 2 done.
Loading NimbusMonL-Bold font from /usr/share/fonts/default/Type1/n022004l.pfb... 4677928 3250154 2659800 1110244 2 done.
Loading NimbusMonL-BoldObli font from /usr/share/fonts/default/Type1/n022024l.pfb... 4817392 3385828 2659800 1115471 2 done.

这不会在jenkins控制台输出(stdout)上打印ps文件图像。我做错了什么,我应该如何解决它。

1 个答案:

答案 0 :(得分:0)

显示设备不会打印到控制台,它会将其发送到X11窗口(在Unix上,在Windows上是一个窗口)。

鉴于Ghostscript将复杂图形渲染为位图,您期望在控制台输出上看到什么?