1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!-- <!ENTITY gs-download-http "&sourceforge-repo;/ghostscript/ghostscript-&gs-version;.tar.bz2"> -->
|
---|
8 | <!ENTITY gs-download-http "http://ghostscript.com/releases/ghostscript-&gs-version;.tar.gz">
|
---|
9 | <!ENTITY gs-download-ftp "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs871/ghostscript-&gs-version;.tar.gz">
|
---|
10 | <!ENTITY gs-md5sum "51a522a5b4818bd3dc7c1c0e9dd22bad">
|
---|
11 | <!ENTITY gs-size "25.2 MB">
|
---|
12 | <!ENTITY gs-buildsize "255 MB (includes installing libgs.so and both font tarballs)">
|
---|
13 | <!ENTITY gs-time "3.3 SBU (includes building and installing libgs.so)">
|
---|
14 |
|
---|
15 | <!-- <!ENTITY gs-standard-fonts-download "ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/ghostscript-fonts-std-8.11.tar.gz"> -->
|
---|
16 | <!ENTITY gs-standard-fonts-download "&sourceforge-repo;/gs-fonts/ghostscript-fonts-std-8.11.tar.gz">
|
---|
17 | <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
|
---|
18 | <!ENTITY gs-standard-fonts-size "3.7 MB">
|
---|
19 |
|
---|
20 | <!ENTITY gs-other-fonts-download "&sourceforge-repo;/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz">
|
---|
21 | <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
|
---|
22 | <!ENTITY gs-other-fonts-size "796 KB">
|
---|
23 | ]>
|
---|
24 |
|
---|
25 | <sect1 id="gs" xreflabel="GPL Ghostscript-&gs-version;">
|
---|
26 | <?dbhtml filename="gs.html"?>
|
---|
27 |
|
---|
28 | <sect1info>
|
---|
29 | <othername>$LastChangedBy$</othername>
|
---|
30 | <date>$Date$</date>
|
---|
31 | </sect1info>
|
---|
32 |
|
---|
33 | <title>GPL Ghostscript-&gs-version;</title>
|
---|
34 |
|
---|
35 | <indexterm zone="gs">
|
---|
36 | <primary sortas="a-GPL-Ghostscript">GPL Ghostscript</primary>
|
---|
37 | </indexterm>
|
---|
38 |
|
---|
39 | <sect2 role="package">
|
---|
40 | <title>Introduction to Ghostscript</title>
|
---|
41 |
|
---|
42 | <para><application>Ghostscript</application> is a versatile processor
|
---|
43 | for PostScript data with the ability to render PostScript to different
|
---|
44 | targets.</para>
|
---|
45 |
|
---|
46 | &lfs65_checked;
|
---|
47 |
|
---|
48 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
49 | <itemizedlist spacing="compact">
|
---|
50 | <listitem>
|
---|
51 | <para>Download (HTTP): <ulink url="&gs-download-http;"/></para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Download (FTP): <ulink url="&gs-download-ftp;"/></para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Download MD5 sum: &gs-md5sum;</para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>Download size: &gs-size;</para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>Estimated disk space required: &gs-buildsize;</para>
|
---|
64 | </listitem>
|
---|
65 | <listitem>
|
---|
66 | <para>Estimated build time: &gs-time;</para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
71 |
|
---|
72 | <itemizedlist spacing='compact'>
|
---|
73 | <title>Standard Fonts</title>
|
---|
74 | <listitem>
|
---|
75 | <para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para>
|
---|
76 | </listitem>
|
---|
77 | <listitem>
|
---|
78 | <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
|
---|
79 | </listitem>
|
---|
80 | <listitem>
|
---|
81 | <para>Download size: &gs-standard-fonts-size;</para>
|
---|
82 | </listitem>
|
---|
83 | </itemizedlist>
|
---|
84 |
|
---|
85 | <itemizedlist spacing='compact'>
|
---|
86 | <title>Other Fonts</title>
|
---|
87 | <listitem>
|
---|
88 | <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
|
---|
89 | </listitem>
|
---|
90 | <listitem>
|
---|
91 | <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
|
---|
92 | </listitem>
|
---|
93 | <listitem>
|
---|
94 | <para>Download size: &gs-other-fonts-size;</para>
|
---|
95 | </listitem>
|
---|
96 | </itemizedlist>
|
---|
97 |
|
---|
98 | <itemizedlist spacing="compact">
|
---|
99 | <title>Patches</title>
|
---|
100 | <listitem>
|
---|
101 | <para>Optional patch: <ulink
|
---|
102 | url="&patch-root;/ghostscript-&gs-version;-system_jasper-1.patch"/>
|
---|
103 | </para>
|
---|
104 | </listitem>
|
---|
105 | </itemizedlist>
|
---|
106 |
|
---|
107 | <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
|
---|
108 |
|
---|
109 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
110 | <para role="optional"><xref linkend="libjpeg"/>,
|
---|
111 | <xref linkend="libpng"/>,
|
---|
112 | <xref linkend="libtiff"/>,
|
---|
113 | <xref linkend="jasper"/>,
|
---|
114 | <xref linkend="cairo"/>,
|
---|
115 | <xref linkend="fontconfig"/>,
|
---|
116 | <xref linkend="gtk2"/>,
|
---|
117 | <xref linkend="cups"/>,
|
---|
118 | <xref linkend="x-window-system"/>,
|
---|
119 | <ulink url="http://www.linuxprinting.org/ijs/">IJS</ulink>, and
|
---|
120 | <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink></para>
|
---|
121 |
|
---|
122 | <para condition="html" role="usernotes">User Notes:
|
---|
123 | <ulink url="&blfs-wiki;/gs"/></para>
|
---|
124 |
|
---|
125 | </sect2>
|
---|
126 |
|
---|
127 | <sect2 role="installation">
|
---|
128 | <title>Installation of Ghostscript</title>
|
---|
129 |
|
---|
130 | <note>
|
---|
131 | <para>The <application>Ghostscript</application> build system is not
|
---|
132 | user-friendly. In order to use system copies of various graphics
|
---|
133 | libraries, you must do it using unconventional methods.</para>
|
---|
134 |
|
---|
135 | <para>First, if you wish to use the system-installed version of
|
---|
136 | <application>JasPer</application>, remove the local copy from the
|
---|
137 | source tree and apply a patch:</para>
|
---|
138 |
|
---|
139 | <screen><userinput>rm -rf jasper &&
|
---|
140 | patch -Np1 -i ../ghostscript-&gs-version;-system_jasper-1.patch</userinput></screen>
|
---|
141 |
|
---|
142 | <para>Next, if you wish to use the system-installed copies of
|
---|
143 | <application>libjpeg</application> and <application>libpng</application>,
|
---|
144 | remove the local copies from the source tree:</para>
|
---|
145 |
|
---|
146 | <screen><userinput>rm -rf jpeg &&
|
---|
147 | rm -rf libpng</userinput></screen>
|
---|
148 |
|
---|
149 | <para>If you wish to use the system-installed copy of
|
---|
150 | <application>libtiff</application>, add the parameter
|
---|
151 | <option>--with-system-libtiff</option> to the <command>./configure</command>
|
---|
152 | command shown below. Also remove the
|
---|
153 | <filename class='directory'>tiff</filename> directory from the source tree
|
---|
154 | to prevent the <application>Ghostscript</application> build from using any
|
---|
155 | of its local copy.</para>
|
---|
156 |
|
---|
157 | <para>Unfortunately, <application>Ghostscript</application> will use local
|
---|
158 | copies of <application>Expat</application> and
|
---|
159 | <application>Zlib</application> from the source tree. There doesn't
|
---|
160 | appear to be an easy way to use system-installed copies of these libraries
|
---|
161 | without doing some hacking of the sources.</para>
|
---|
162 | </note>
|
---|
163 |
|
---|
164 | <para>Install <application>GPL Ghostscript</application> by running the
|
---|
165 | following commands:</para>
|
---|
166 |
|
---|
167 | <screen><userinput>./configure --prefix=/usr --enable-dynamic &&
|
---|
168 | make</userinput></screen>
|
---|
169 |
|
---|
170 | <para>This package does not come with a test suite. However, you may test
|
---|
171 | the operation of the newly built <command>gs</command> program by
|
---|
172 | issuing the following command (issue from an X Windows terminal):</para>
|
---|
173 |
|
---|
174 | <screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
|
---|
175 |
|
---|
176 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
177 |
|
---|
178 | <screen role="root"><userinput>make install docdir=/usr/share/doc/ghostscript-&gs-version; &&
|
---|
179 |
|
---|
180 | for INSTFILE in `ls doc`
|
---|
181 | do
|
---|
182 | if [ ! -f /usr/share/doc/ghostscript-&gs-version;/$INSTFILE ]; then
|
---|
183 | install -v -m644 doc/$INSTFILE \
|
---|
184 | /usr/share/doc/ghostscript-&gs-version;
|
---|
185 | fi
|
---|
186 | done &&
|
---|
187 |
|
---|
188 | install -v -m755 -d /usr/share/doc/ghostscript-&gs-version;/figures &&
|
---|
189 | install -v -m644 doc/figures/* \
|
---|
190 | /usr/share/doc/ghostscript-&gs-version;/figures</userinput></screen>
|
---|
191 |
|
---|
192 | <para>To install the shared library
|
---|
193 | <filename class='libraryfile'>libgs.so</filename>, run the
|
---|
194 | following additional command as an unprivileged user:</para>
|
---|
195 |
|
---|
196 | <screen><userinput>make so</userinput></screen>
|
---|
197 |
|
---|
198 | <para>And again as the <systemitem class="username">root</systemitem>
|
---|
199 | user:</para>
|
---|
200 |
|
---|
201 | <screen role="root"><userinput>make soinstall docdir=/usr/share/doc/ghostscript-&gs-version; &&
|
---|
202 | install -v -m644 base/*.h /usr/include/ghostscript &&
|
---|
203 | ln -v -s ghostscript /usr/include/ps</userinput></screen>
|
---|
204 |
|
---|
205 | <note>
|
---|
206 | <para>The shared library depends on <xref linkend="gtk2"/>. It is
|
---|
207 | only used in external programs like <xref linkend="gsview"/> and
|
---|
208 | <xref linkend="imagemagick"/>.</para>
|
---|
209 | </note>
|
---|
210 |
|
---|
211 | <para>To finish the installation, unpack all fonts you've downloaded to
|
---|
212 | <filename class="directory">/usr/share/ghostscript</filename> and ensure
|
---|
213 | the ownerships of the files are
|
---|
214 | <systemitem class="username">root</systemitem>:<systemitem
|
---|
215 | class="groupname">root</systemitem>. Substitute
|
---|
216 | <replaceable><font-tarball></replaceable> appropriately in
|
---|
217 | the command below for the fonts you wish to install:</para>
|
---|
218 |
|
---|
219 | <screen role="root"><userinput>tar -xvf ../<replaceable><font-tarball></replaceable> \
|
---|
220 | -C /usr/share/ghostscript --no-same-user</userinput></screen>
|
---|
221 |
|
---|
222 | </sect2>
|
---|
223 |
|
---|
224 | <sect2 role="commands">
|
---|
225 | <title>Command Explanations</title>
|
---|
226 |
|
---|
227 | <para><command>install ...</command>: Some packages
|
---|
228 | (<application>ImageMagick</application> is one) need the
|
---|
229 | <application>Ghostscript</application> interface headers in place to link
|
---|
230 | to the shared library. These commands install the headers.</para>
|
---|
231 |
|
---|
232 | <!-- <para><command>ln -sv ... /usr/share/doc/ghostscript-&gs-version;</command>: This puts
|
---|
233 | the documentation where it is expected to be found.</para> -->
|
---|
234 |
|
---|
235 | <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some
|
---|
236 | packages expect to find the interface headers in an alternate
|
---|
237 | location.</para>
|
---|
238 |
|
---|
239 | </sect2>
|
---|
240 |
|
---|
241 | <sect2 role="content">
|
---|
242 | <title>Contents</title>
|
---|
243 | <segmentedlist>
|
---|
244 | <segtitle>Installed Programs</segtitle>
|
---|
245 | <segtitle>Installed Library</segtitle>
|
---|
246 | <segtitle>Installed Directories</segtitle>
|
---|
247 |
|
---|
248 | <seglistitem>
|
---|
249 | <seg>bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
|
---|
250 | gsdj, gsdj500, gslj, gslp, gsnd, lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
|
---|
251 | pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
|
---|
252 | ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
|
---|
253 | wftopfa</seg>
|
---|
254 | <seg>libgs.so </seg>
|
---|
255 | <seg>/usr/include/ghostscript, /usr/lib/ghostscript, /usr/share/ghostscript,
|
---|
256 | and /usr/share/doc/ghostscript-&gs-version;</seg>
|
---|
257 | </seglistitem>
|
---|
258 | </segmentedlist>
|
---|
259 |
|
---|
260 | <variablelist>
|
---|
261 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
262 | <?dbfo list-presentation="list"?>
|
---|
263 | <?dbhtml list-presentation="table"?>
|
---|
264 |
|
---|
265 | <varlistentry id="gplgs-prog">
|
---|
266 | <term><command>gs</command></term>
|
---|
267 | <listitem>
|
---|
268 | <para>is an interpreter for Adobe Systems' PostScript(tm) and Portable Document Format
|
---|
269 | (PDF).</para>
|
---|
270 | <indexterm zone="gs gplgs-prog">
|
---|
271 | <primary sortas="b-gs">gs</primary>
|
---|
272 | </indexterm>
|
---|
273 | </listitem>
|
---|
274 | </varlistentry>
|
---|
275 |
|
---|
276 | <varlistentry id="libgs.so">
|
---|
277 | <term><filename class="libraryfile">libgs.so</filename></term>
|
---|
278 | <listitem>
|
---|
279 | <para>provides <application>Ghostscript</application> functionality
|
---|
280 | to other programs, such as <application>GSView</application>,
|
---|
281 | <application>ImageMagick</application>, and
|
---|
282 | <application>libspectre</application>.</para>
|
---|
283 | <indexterm zone="gs libgs.so">
|
---|
284 | <primary sortas="c-libgs.so">libgs.so</primary>
|
---|
285 | </indexterm>
|
---|
286 | </listitem>
|
---|
287 | </varlistentry>
|
---|
288 |
|
---|
289 | </variablelist>
|
---|
290 |
|
---|
291 | <para><application>GPL Ghostscript</application> provides many different
|
---|
292 | scripts used to convert PostScript, PDF, and other formats. Please refer to
|
---|
293 | the HTML documentation or the man pages for information about the
|
---|
294 | capabilities provided.</para>
|
---|
295 |
|
---|
296 | </sect2>
|
---|
297 |
|
---|
298 | </sect1>
|
---|