J. Wend
J. Wend

Reputation: 13

Ghostscript ps2pdf exec: gs: not found

A thousand apologies if this has already been answered, but I can't find a solution for the life of me. Seems like it should be the simplest thing. I installed Ghostscript 9.23 and I'm trying to use the ps2pdf command to convert a document. The script runs up to the very last line then throws an error:

/C/Program Files/gs/gs9.23/lib/ps2pdfwr: line 44: exec: gs: not found

I've added the gs bin and lib directories to my windows PATH, but it looks like gs is still not finding something it needs. Thoughts?

Thanks, John

Upvotes: 1

Views: 2796

Answers (1)

KenS
KenS

Reputation: 31159

You appear to be trying to use a Linux shell script on a Windows system, going by the path you state.

On Windows, the Ghostscript executable is called gswin32.exe, gswin32c. exe, gswin64.exe or gswin64c.exe depending on whether you have installed the 64 or 32-bit version, and whether you want to run the command line or windowed version.

Alternatively the missing ':' in the path specification might be a problem.

There's really very little point in using the shell script anyway, just do:

gswin32c -sDEVICE=pdfwrite -o

Upvotes: 2

Related Questions