Ray Johnston Ray.Johnston at Artifex.com
Mon Apr 6 11:50:18 PDT 2009
Hi Izzy,
The free Microsoft Visual Studio Express C++ can be used to build gs
using: nmake -f psi/msvc32.mak
in a command prompt (assuming that when you installed VS you had it
add the environment variables -- otherwise you might need to run
vsvars32.bat first).
When Ghostscript is installed from the 'gs864w32.exe' it does not add
the path to your PATH environment variable, nor does it add the 'lib'
path.
By default, the install will put 8.64 in "C:\Program Files\gs\gs8.64"
and some subdirectories and will put a 'shortcut' in "Programs" in
the "Ghostscript" group. You can examine the shortcut for gs8.64 to
see exactly where your version was installed. From a command prompt,
you can run Ghostscript using the method from the 'Target' of the
shortcut, which on my installation is:
"C:\Program Files\gs\gs8.64\bin\gswin32.exe" "-IC:\Program
Files\gs\gs8.64\lib;C:\Program Files\gs\fonts"
To use ps2pdf.bat or other lib scripts from a command prompt, right-
click on "My Computer", then click "Properties", then click the
"Advanced" tab and click on the "Environment Variables" near the
bottom and add the following to your 'Path' System variables:
;C:\Program Files\gs\gs8.64\bin;C:\Program Files\gs\gs8.64\lib
by selecting that variable and clicking on "Edit".
An alternate method that only adds these to the path for a single command
prompt is to execute (from the command prompt, before running ps2pdf):
set PATH="C:/Program Files/gs/gs8.64/bin";"C:/Program
Files/gs/gs8.64/lib";"%PATH%"
then typing:
gswin32c -h
should show you that everything is accessible, and typing:
ps2pdf
should say:
Usage: ps2pdf input.ps [output.pdf]
or: ps2pdf [options...] input.[e]ps output.pdf
Best Regards,
Ray Johnston
©
Mon Apr 6 11:50:18 PDT 2009
Hi Izzy,
The free Microsoft Visual Studio Express C++ can be used to build gs
using: nmake -f psi/msvc32.mak
in a command prompt (assuming that when you installed VS you had it
add the environment variables -- otherwise you might need to run
vsvars32.bat first).
When Ghostscript is installed from the 'gs864w32.exe' it does not add
the path to your PATH environment variable, nor does it add the 'lib'
path.
By default, the install will put 8.64 in "C:\Program Files\gs\gs8.64"
and some subdirectories and will put a 'shortcut' in "Programs" in
the "Ghostscript" group. You can examine the shortcut for gs8.64 to
see exactly where your version was installed. From a command prompt,
you can run Ghostscript using the method from the 'Target' of the
shortcut, which on my installation is:
"C:\Program Files\gs\gs8.64\bin\gswin32.exe" "-IC:\Program
Files\gs\gs8.64\lib;C:\Program Files\gs\fonts"
To use ps2pdf.bat or other lib scripts from a command prompt, right-
click on "My Computer", then click "Properties", then click the
"Advanced" tab and click on the "Environment Variables" near the
bottom and add the following to your 'Path' System variables:
;C:\Program Files\gs\gs8.64\bin;C:\Program Files\gs\gs8.64\lib
by selecting that variable and clicking on "Edit".
An alternate method that only adds these to the path for a single command
prompt is to execute (from the command prompt, before running ps2pdf):
set PATH="C:/Program Files/gs/gs8.64/bin";"C:/Program
Files/gs/gs8.64/lib";"%PATH%"
then typing:
gswin32c -h
should show you that everything is accessible, and typing:
ps2pdf
should say:
Usage: ps2pdf input.ps [output.pdf]
or: ps2pdf [options...] input.[e]ps output.pdf
Best Regards,
Ray Johnston
©