我从 NCL 脚本中获得了一个附有 mpDataBaseVersion = "HighRes"(高分辨率地图)的后记文件。我在 RHEL 5.6 i386 中运行了 ImageMagick 6.2.8。
当我跑的时候convert high-resolution.ps test.png,我得到了:
Error: /undefinedresult in --ashow--
Operand stack:
   0   0   ( )
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1910   1   3   %oparray_pop   1909   1   3   %oparray_pop   1893   1   3   %oparray_pop   1787   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1171/1684(ro)(G)--   --dict:0/20(G)--   --dict:143/200(L)--
Current allocation mode is local
Current file position is 629039
但是在使用 ImageMagick 5.5.6 的 RHEL 3 i386 中,相同的后记转换没有错误,怎么会?
我用谷歌搜索了一段时间,但我仍然不知道 undefinedresult 导致 ashow 错误。
执行堆栈是什么意思?
[更新]
谢谢@Fred 和@Ken!
我在下面重组了我的问题:
我有一个很大的 PostScript 文件 (9.3 MB):high_resolution.ps
电脑甲:
- 红帽企业 Linux ES 第 3 版(Taroon 更新 3)i386
- 转换版本:ImageMagick 5.5.6 04/01/03 Q16
- Ghostscript 版本:GNU Ghostscript 7.05 (2002-04-22)
电脑乙:
- 红帽企业 Linux 服务器版本 5.6 (Tikanga) i386
- 转换版本:ImageMagick 6.2.8 05/07/12 Q16
- Ghostscript 版本:GPL Ghostscript 8.70 (2009-07-31)
convert high_resolution.ps high_resolution.png 在 PC A 中工作,但在 PC B 中无效。
错误在上面。
我检查了 Ghostscript 更新日志,我对此一无所知(也许我只是错过了它?)
非常感谢!谢谢!</p>