Hi all,

I have a Perl script (textogif) which I downloaded which coverts latex equations to 
gifs by using gs to render ps files. It's failing with:
        Error: /undefinedfilename in (pstoppm.ps)
cause I don't have that file on my system.  

The docs that came with the program say that 
        "pstoppm.ps  (version supplied with Ghostscript 2.6.1)"
but dpkg -L gs | grep pstoppm says "nope" :-)
and a find does not find it either.

So it looks like the Ghostscript that comes with Debian does not include that file.
Jills SUSE system also does not have the file. Perhaps it not in later versions of gs?
Anyone know what package I need for that file? 

The part of the Perl script that calls it is:
open(P, "| gs -q -sDEVICE=ppmraw pstoppm.ps") ||
     die("Can't open pipe to Ghostscript\n");
printf(P "%d %d ppmsetdensity\n", int($dpi / $res), int($dpi / $res));
print(P "(_temp_$$) ppm1run\n");
print(P "quit\n");
close(P);
die("Ghostscript/pstoppm.ps error processing _temp_$$.ps\n") if $?;

and its failing at the line that opens the pipe to gs as it can't find pstoppm.ps.

Mike
-- 
--------------------------------------------------------------------
Michael Lake
Active caver, Linux enthusiast and interested in anything technical.
Safety Convenor, Australian Speleological Federation
Owner, Speleonics (Australia)
--------------------------------------------------------------------
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to