source: pst/printing/gs.xml@ d453af5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d453af5 was d453af5, checked in by Andrew Benton <andy@…>, 12 years ago

Updated ghostscript to 9.04

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9007 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.9 KB
Line 
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 <!-- FIXME use .bz2 or .xz when updating, if they are available -->
9 <!ENTITY gs-download-http "http://ghostscript.com/releases/ghostscript-&gs-version;.tar.bz2">
10 <!-- no response 2010-12-18
11 <!ENTITY gs-download-ftp "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs900/ghostscript-&gs-version;.tar.gz"> -->
12 <!ENTITY gs-download-ftp " ">
13 <!ENTITY gs-md5sum "9f6899e821ab6d78ab2c856f10fa3023">
14 <!ENTITY gs-size "28.5 MB">
15 <!ENTITY gs-buildsize "297 MB (includes installing libgs.so and both font tarballs)">
16 <!ENTITY gs-time "2.5 SBU (includes building and installing libgs.so)">
17
18 <!-- <!ENTITY gs-standard-fonts-download "ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/ghostscript-fonts-std-8.11.tar.gz"> -->
19 <!ENTITY gs-standard-fonts-download "&sourceforge-repo;/gs-fonts/ghostscript-fonts-std-8.11.tar.gz">
20 <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
21 <!ENTITY gs-standard-fonts-size "3.7 MB">
22
23 <!ENTITY gs-other-fonts-download "&sourceforge-repo;/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz">
24 <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
25 <!ENTITY gs-other-fonts-size "796 KB">
26]>
27
28<sect1 id="gs" xreflabel="GPL Ghostscript-&gs-version;">
29 <?dbhtml filename="gs.html"?>
30
31 <sect1info>
32 <othername>$LastChangedBy$</othername>
33 <date>$Date$</date>
34 </sect1info>
35
36 <title>GPL Ghostscript-&gs-version;</title>
37
38 <indexterm zone="gs">
39 <primary sortas="a-GPL-Ghostscript">GPL Ghostscript</primary>
40 </indexterm>
41
42 <sect2 role="package">
43 <title>Introduction to Ghostscript</title>
44
45 <para><application>Ghostscript</application> is a versatile processor
46 for PostScript data with the ability to render PostScript to different
47 targets.</para>
48
49 &lfs70_checked;
50
51 <bridgehead renderas="sect3">Package Information</bridgehead>
52 <itemizedlist spacing="compact">
53 <listitem>
54 <para>Download (HTTP): <ulink url="&gs-download-http;"/></para>
55 </listitem>
56 <listitem>
57 <para>Download (FTP): <ulink url="&gs-download-ftp;"/></para>
58 </listitem>
59 <listitem>
60 <para>Download MD5 sum: &gs-md5sum;</para>
61 </listitem>
62 <listitem>
63 <para>Download size: &gs-size;</para>
64 </listitem>
65 <listitem>
66 <para>Estimated disk space required: &gs-buildsize;</para>
67 </listitem>
68 <listitem>
69 <para>Estimated build time: &gs-time;</para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74
75 <itemizedlist spacing='compact'>
76 <title>Standard Fonts</title>
77 <listitem>
78 <para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para>
79 </listitem>
80 <listitem>
81 <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
82 </listitem>
83 <listitem>
84 <para>Download size: &gs-standard-fonts-size;</para>
85 </listitem>
86 </itemizedlist>
87
88 <itemizedlist spacing='compact'>
89 <title>Other Fonts</title>
90 <listitem>
91 <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
92 </listitem>
93 <listitem>
94 <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
95 </listitem>
96 <listitem>
97 <para>Download size: &gs-other-fonts-size;</para>
98 </listitem>
99 </itemizedlist>
100
101 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
102
103 <bridgehead renderas="sect4">Recommended</bridgehead>
104 <para role="optional"><xref linkend="expat"/>,
105 <xref linkend="freetype2"/>,
106 <xref linkend="jasper"/>
107 <xref linkend="libjpeg"/>,
108 <xref linkend="libpng"/>,
109 <xref linkend="libtiff"/>, and
110 <xref linkend="lcms"/></para>
111
112 <bridgehead renderas="sect4">Optional</bridgehead>
113 <para role="optional">
114 <xref linkend="cairo"/>,
115 <xref linkend="fontconfig"/>,
116 <xref linkend="gtk2"/>,
117 <xref linkend="cups"/>,
118 <xref linkend="libidn"/>,
119 <xref linkend="x-window-system"/>, and
120 <!-- the link for ijs source ultimately takes users back to the ghostscript site
121 <ulink url="http://www.linuxprinting.org/ijs/">IJS</ulink>, and -->
122 <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>.</para>
123
124 <para condition="html" role="usernotes">User Notes:
125 <ulink url="&blfs-wiki;/gs"/></para>
126
127 </sect2>
128
129 <sect2 role="installation">
130 <title>Installation of Ghostscript</title>
131
132 <para>Install <application>GPL Ghostscript</application> by running the
133 following commands:</para>
134
135 <note>
136 <para>The <application>Ghostscript</application> build system is not
137 user-friendly. In order to use system copies of various graphics
138 libraries, you must do it using unconventional methods.</para>
139 </note>
140
141 <para><application>GPL Ghostscript</application> includes (old) copies of
142 several libraries. Some of these seem to have been patched to fix known
143 vulnerabilities, but others of these copies are less-well maintained.
144 To ensure that any future fixes are applied throughout the whole system,
145 it is recommended that you install the released versions of these
146 libraries and then configure <application>GPL Ghostscript</application>
147 to link to them.</para>
148
149 <para>If you have installed these dependencies on your system, remove the
150 copies of <application>expat</application>,
151 <application>freetype</application>, <application>JasPer</application>,
152 <application>lcms</application>, <application>libjpeg</application>,
153 <application>libpng</application>, <application>libtiff</application>
154 and <application>zlib</application>:
155 </para>
156
157<screen><userinput>rm -rf expat freetype jasper lcms jpeg libpng tiff zlib</userinput></screen>
158
159 <para>Run the configure command:</para>
160
161<screen><userinput>./configure --prefix=/usr --enable-dynamic --with-system-libtiff</userinput></screen>
162
163 <para>To ensure the build is able to use the system versions of
164 <application>expat</application>, <application>freetype</application>, and
165 <application>zlib</application> it is necessary to make some changes and an
166 addition to the <literal>Makefile</literal> before building the package:</para>
167
168<screen><userinput>sed -i '/^EXTRALIBS/s# -ldl# -lfreetype -lz#
169 /=imdi/aSHARE_EXPAT=1' Makefile &amp;&amp;
170make</userinput></screen>
171
172 <warning>
173 <para>If you have a multiprocessor computer and try to run make with
174 multiple jobs (eg, -j4) then the build may fail due to race conditions in
175 the <application>Ghostscript</application> build system.</para>
176 </warning>
177
178 <note>
179 <para>The shared library depends on <xref linkend="gtk2"/>. It is
180 only used in external programs like <xref linkend="imagemagick"/>.</para>
181 </note>
182
183 <para>To compile the shared library
184 <filename class='libraryfile'>libgs.so</filename>, run the
185 following additional command as an unprivileged user:</para>
186
187<screen><userinput>make so</userinput></screen>
188
189 <para>This package does not come with a test suite. However, you may test
190 the operation of the newly built <command>gs</command> program by
191 issuing the following command (issue from an X Windows terminal):</para>
192
193 <screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
194
195 <para>Now, as the <systemitem class="username">root</systemitem>
196 user:</para>
197
198<screen role="root"><userinput>make install</userinput></screen>
199
200 <para>If you want the shared library too:</para>
201
202<screen role="root"><userinput>make soinstall &amp;&amp;
203install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
204ln -v -s ghostscript /usr/include/ps</userinput></screen>
205
206 <para>Now install the documentation:</para>
207
208<screen role="root"><userinput>cp -rf doc /usr/share/ghostscript/&gs-version; &amp;&amp;
209ln -sv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
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>:
215 <systemitem class="groupname">root</systemitem>. Substitute
216 <replaceable>&lt;font-tarball&gt;</replaceable> appropriately in
217 the command below for the fonts you wish to install:</para>
218
219<screen role="root"><userinput>tar -xvf ../<replaceable>&lt;font-tarball&gt;</replaceable> -C /usr/share/ghostscript --no-same-owner</userinput></screen>
220
221 </sect2>
222
223 <sect2 role="commands">
224 <title>Command Explanations</title>
225
226 <!-- works fine on 32 bit systems for me - Andrew Benton
227 <para><command>with-drivers=ALL,x11</command>: This parameter adds the
228 <literal>x11</literal> output device to the default (<literal>ALL</literal>)
229 selection so that the test to render the tiger will work on 32-bit systems
230 (this does no harm on the <literal>x86_64</literal> architecture, although
231 it is not required there).</para> -->
232
233 <!-- The build fails for me with this option with ghostscript-9.04 and
234 zlib-1.2.5 - Andrew Benton
235 <para><command>disable-compile-inits</command>: This parameter is intended
236 to avoid compiling initialization files into the executables. It is used
237 here to simplify building against the system version of
238 <application>zlib</application>.</para> -->
239
240 <para><option>--without-jasper</option>: If you know you do not wish to
241 print any <literal>JPEG2000</literal> files, this switch (and removing the
242 <filename class="directory">jasper</filename> folder in the source) will
243 disable JPEG2000 support in <application>Ghostscript</application>.</para>
244
245 <para><option>--without-jbig2dec</option>: The <literal>JBIG2</literal>
246 decompression code (used for some faxes) can be disabled by using this
247 switch and removing the <filename class="directory">jbig2dec/</filename>
248 source.</para>
249
250 <para><command>install -v -m644 base/*.h...</command>: Some packages
251 (<application>ImageMagick</application> is one) need the
252 <application>Ghostscript</application> interface headers in place to link
253 to the shared library. These commands install the headers.</para>
254
255 <para><command>ln -sv ... /usr/share/doc/ghostscript-&gs-version;</command>:
256 This puts a symbolic link to the documentation where it is expected to be
257 found.</para>
258
259 <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
260 expect to find the interface headers in an alternate location.</para>
261
262 </sect2>
263
264 <sect2 role="content">
265 <title>Contents</title>
266 <segmentedlist>
267 <segtitle>Installed Programs</segtitle>
268 <segtitle>Installed Library</segtitle>
269 <segtitle>Installed Directories</segtitle>
270
271 <seglistitem>
272 <seg>bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
273 gsc (from soinstall), gsdj, gsdj500, gslj, gslp, gsnd, gsx
274 (from soinstall), lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
275 pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
276 ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
277 wftopfa</seg>
278 <seg>libgs.so </seg>
279 <seg>/usr/include/ghostscript, /usr/lib/ghostscript,
280 /usr/share/ghostscript,
281 and /usr/share/doc/ghostscript-&gs-version;</seg>
282 </seglistitem>
283 </segmentedlist>
284
285 <variablelist>
286 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
287 <?dbfo list-presentation="list"?>
288 <?dbhtml list-presentation="table"?>
289
290 <varlistentry id="gplgs-prog">
291 <term><command>gs</command></term>
292 <listitem>
293 <para>is an interpreter for Adobe Systems' PostScript(tm) and Portable
294 Document Format (PDF).</para>
295 <indexterm zone="gs gplgs-prog">
296 <primary sortas="b-gs">gs</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="libgs.so">
302 <term><filename class="libraryfile">libgs.so</filename></term>
303 <listitem>
304 <para>provides <application>Ghostscript</application> functionality
305 to other programs, such as <application>GSView</application>,
306 <application>ImageMagick</application>, and
307 <application>libspectre</application>.</para>
308 <indexterm zone="gs libgs.so">
309 <primary sortas="c-libgs.so">libgs.so</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 </variablelist>
315
316 <para><application>GPL Ghostscript</application> provides many different
317 scripts used to convert PostScript, PDF, and other formats. Please refer to
318 the HTML documentation or the man pages for information about the
319 capabilities provided.</para>
320
321 </sect2>
322
323</sect1>
Note: See TracBrowser for help on using the repository browser.