vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
542 stars 90 forks source link

Problems with SVG export after upgrading to ghostscript 10 #357

Closed gdietl closed 1 year ago

gdietl commented 1 year ago

I have problems of generating SVG output since ghostscript has upgraded to version 10. When downgrading gs to version 9.56.1 everything works as intended. However, with the new version, I get the error

ERROR: Ghostscript is required to process EPS files
    shipout3(prefix,f,preview ? nativeformat() : format,
            ^
/usr/local/share/asymptote/three.asy: 2896.13: runtime: shipout failed
johncbowman commented 1 year ago

I tried ghostscript-10.0.0-linux-x86_64 and fortunately it works fine. You probably have an installation issue. The ERROR message has nothing to do with Asymptote; it is coming from dvisvgm (use the -vv asy option to see how dvisvgm is being called). First focus on getting your new ghostsript installation to work with dvisvgm.