📄 install.htm
字号:
HKEY_LOCAL_MACHINE\SOFTWARE\Aladdin Ghostscript\#.##
</tt></b></blockquote>
<p>
where #.## is the Ghostscript version number. This does not work under
Win32s (that is, Windows 3, which doesn't support named registry values).
<p>
If the environment variable <b><tt>GS_DLL</tt></b> is defined, Ghostscript
tries to load the Ghostscript dynamic link library (DLL) with the name
given. If this fails, Ghostscript tries to load
<b><tt>GSDLL32.DLL</tt></b> from the current directory, the search path or
the same directory as the Ghostscript executable.
<hr>
<h1><a name="Install_OS2"></a>Installing Ghostscript on OS/2 2.x</h1>
<p>
The Ghostscript OS/2 implementation is designed for OS/2 2.1 or later. A
few people have used it successfully under OS/2 2.0, but it has had very
little testing. You need these files to run Ghostscript on OS/2:
<blockquote><table cellpadding=0 cellspacing=0>
<tr valign=top> <td><b><tt>GSOS2.EXE</tt></b>
<td>
<td>A text application that will run windowed or full screen
<tr valign=top> <td><b><tt>GSDLL2.DLL</tt></b>
<td>
<td>A dynamic link library that must be in the same directory as
<b><tt>GSOS2.EXE</tt></b> or on the <b><tt>LIBPATH</tt></b>.
<tr valign=top> <td><b><tt>GSPMDRV.EXE</tt></b>
<td>
<td>An "external driver" used by the "<b><tt>os2pm</tt></b>"
device, which is normally the default device and which displays
output in a Presentation Manager window;
<b><tt>GSPMDRV.EXE</tt></b> must be located in the same
directory as <b><tt>GSOS2.EXE</tt></b> or on the
<b><tt>PATH</tt></b>
</table></blockquote>
<p>
<b><tt>GSOS2.EXE</tt></b>, <b><tt>GSDLL2.DLL</tt></b> and
<b><tt>GSPMDRV.EXE</tt></b> are compiled using EMX/GCC 0.9b. You must have
the EMX DLLs on your <b><tt>LIBPATH</tt></b>; they are available in a
package <b><tt>emxrt*.zip</tt></b> from many places on the Internet, so you
can find the package by using a search engine or the ftp lookup service at
<blockquote>
<a href="http://ftpsearch.ntnu.no/">http://ftpsearch.ntnu.no/</a>
</blockquote>
<p>
The system menu of the Ghostscript Image window includes a "Copy" command
to copy the currently displayed bitmap to the Clipboard.
<p>
OS/2 comes with some Adobe Type Manager fonts. If you wish to use these
with Ghostscript, you should replace the <b><tt>FONTMAP</tt></b> file with
<b><tt>FONTMAP.OS2</tt></b>, and add to the environment variable
<b><tt>GS_LIB</tt></b> (see below for more information about
<b><tt>GS_LIB</tt></b>) the name of the directory where the fonts are
located, usually <b><tt>C:\PSFONTS</tt></b>. Before you do this, please
read carefully the license that accompanies the ATM fonts; Aladdin
Enterprises takes no responsibility for any possible violations of such
licenses.
<p>
Since <b><tt>GSOS2.EXE</tt></b> is not a PM application, it cannot
determine the depth of the PM display. You must provide this information
using the <b><tt>-dBitsPerPixel</tt></b> option. Valid values are 1, 4, 8
(the default), and 24.
<blockquote><table cellpadding=0 cellspacing=0>
<tr valign=bottom>
<th align=left>Use
<td>
<th align=left>For
<tr> <td colspan=3><hr>
<tr valign=top> <td><b><tt>-dBitsPerPixel=1</tt></b>
<td>
<td>VGA monochrome
<tr valign=top> <td><b><tt>-dBitsPerPixel=4</tt></b>
<td>
<td>VGA standard
<tr valign=top> <td><b><tt>-dBitsPerPixel=8</tt></b>
<td>
<td>SVGA 256 colors
</table></blockquote>
<p>
A command file <b><tt>gspm.cmd</tt></b> containing the following line may
be useful:
<blockquote><b><tt>
@c:\gs\gsos2.exe -Ic:/gs;c:/gs/fonts;c:/psfonts -sDEVICE=os2pm -dBitsPerPixel=8 -sPAPERSIZE=a4 %1 %2 %3 %4 %5 %6 %7 %8
</tt></b></blockquote>
<p>
While drawing, the <b><tt>os2pm</tt></b> driver updates the display every 5
seconds. On slow computers this is undesirable, and a different interval
can be specified in milliseconds with the <b><tt>-dUpdateInterval</tt></b>
option, with a default of <b><tt>-dUpdateInterval=5000</tt></b>; to disable
update, use <b><tt>-dUpdateInterval=0</tt></b>.
<p>
Standard VGA is very slow because it uses double buffering to avoid bugs
and because of 1-plane to 4-plane conversion; it's better to use a
256-color display driver. Many display drivers have bugs which cause 1
bit-per-pixel bitmaps to be displayed incorrectly.
<p>
<b><tt>GSOS2.EXE</tt></b> and <b><tt>GSPMDRV.EXE</tt></b> will stay in
memory for the number of minutes specified in the environment variable
<b><tt>GS_LOAD</tt></b>.
<p>
If you run <b><tt>GS386</tt></b> in the OS/2 2.0 or 2.1 DOS box, you must
select the "ENABLED" setting for the DPMI_DOS_API option of the DOS box.
<b><tt>GS386</tt></b> will not run with the "AUTO" setting.
<p>
For printer devices, output goes to the default queue. To print to a
specified queue, use <b><tt>-sOutputFile=\\spool\NullLPT1</tt></b>, where
<b><tt>NullLPT1</tt></b> is the queue's physical name.
<hr>
<h1><a name="Install_Unix"></a>Installing Ghostscript on Unix</h1>
<p>
You need the file <b><tt>gs</tt></b> to run Ghostscript on Unix, and
installing Ghostscript on a Unix system requires building it first: please
read <a href="Make.htm#Unix_build">how to build Ghostscript on Unix</a> in
the documentation on building Ghostscript, especially regarding how to
decide <a href="Make.htm#UNIX_makefile">which makefile to use</a> and how
you may need to edit it. After building, execute "<b><tt>make
install</tt></b>" to install the executable and all the required and
ancillary files.
<p><a name="Use_Acrobat_fonts_Unix"></a>
The makefile installs all the files except fonts under the directory
defined in the makefile as "<b><tt>prefix</tt></b>",
<b><tt>/usr/local</tt></b> by default. The fonts should be installed in
<em>{prefix}</em><b><tt>/share/ghostscript/fonts</tt></b>.
Consult the makefile for more details. If you have Adobe Acrobat
installed, you can use the Acrobat fonts in place of the ones provided with
Ghostscript by adding the Acrobat fonts directory to
<b><tt>GS_FONTPATH</tt></b> and removing these fonts from
<b><tt>Fontmap</tt></b>:
<blockquote>
Courier, Courier-Bold, Courier-BoldOblique, Courier-Oblique, Helvetica,
Helvetica-Bold, Helvetica-BoldOblique, Helvetica-Oblique, Symbol, Times-Bold,
Times-BoldItalic, Times-Italic, Times-Roman, ZapfDingbats
</blockquote>
<p>
The syntax of the <b><tt>install</tt></b> command varies unpredictably
between Unix systems. If your system has an <b><tt>installbsd</tt></b>
program, edit the definition of <b><tt>INSTALL</tt></b> in the makefile to
change "<b><tt>install</tt></b>" to "<b><tt>installbsd</tt></b>" before you
run "<b><tt>make install</tt></b>".
<p>
For Linux, you can install or upgrade Ghostscript from precompiled
<a href="http://www.rpm.org">RPM</a> files using:
<blockquote><b><tt>
rpm -U ghostscript-N.NN-1.i386.rpm<br>
rpm -U ghostscript-fonts-N.NN-1.noarch.rpm
</tt></b></blockquote>
<hr>
<h1><a name="Install_VMS"></a>Installing Ghostscript on OpenVMS</h1>
<p>
You need the file <b><tt>GS.EXE</tt></b> to run Ghostscript on OpenVMS, and
installing Ghostscript on an OpenVMS system requires building it first:
please
read <a href="Make.htm#VMS_build">how to build Ghostscript on VMS</a> in the
documentation on building Ghostscript.
<p>
Install all the files, including the fonts, in the same directory as the
executable and initialization files. By default, this is the directory in
which you did the compilation. Consult the
<a href="Make.htm#VMS_build">documentation on building Ghostscript</a> for
more details.
<p>
If you have DECWindows/Motif installed, you may wish to replace the
<b><tt>FONTMAP</tt></b> file with <b><tt>FONTMAP.VMS</tt></b>. Read the
comment at the beginning of the latter file for more information.
<!-- [2.0 end contents] ---------------------------------------------------- -->
<!-- [3.0 begin visible trailer] ------------------------------------------- -->
<hr>
<font size=2>
<p>Copyright © 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
<p>This file is part of Aladdin Ghostscript. See the
<a href="Public.htm">Aladdin Free Public License</a> (the "License") for
full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
Ghostscript version 5.50, 16 September 1998
</font>
<!-- [3.0 end visible trailer] --------------------------------------------- -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -