I have a .net windows form application that uses ghostscript. Only on 1 machine do i get an error message. On all others (100s) it works find. This is in a Citrix environment.
The error is "AFPL Ghostscript 8.53: Can't find initialization file gs_init.ps"
I have checked and the file does exist.
I've had a similar problem when compiling a latex file on OSx (pdflatex *.tex
).
The problem arose because of gs
installed by MacTeX.
The command pdflatex
was using the command gs installed by MacTex and not the one installed by brew
.
I fixed the problem by running the following command brew link --overwrite ghostscript
I've had a similar problem when calling the GS dll from a Delphi application; I solved it by setting the environment variable.
From the documentation: Ghostscript tries directories in this order:
-P-
switch);-I
switches in the command line, if any;GS_LIB
environment variable, if any.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With