source: pst/printing/gs.xml@ c40de47

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 c40de47 was c40de47, checked in by Andrew Benton <andy@…>, 12 years ago

Tweaked a sed on the ghostscript page

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9058 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://downloads.ghostscript.com/public/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#;/=imdi/aSHARE_EXPAT=1' Makefile &amp;&amp;
169make</userinput></screen>
170
171 <warning>
172 <para>If you have a multiprocessor computer and try to run make with
173 multiple jobs (eg, -j4) then the build may fail due to race conditions in
174 the <application>Ghostscript</application> build system.</para>
175 </warning>
176
177 <note>
178 <para>The shared library depends on <xref linkend="gtk2"/>. It is
179 only used in external programs like <xref linkend="imagemagick"/>.</para>
180 </note>
181
182 <para>To compile the shared library
183 <filename class='libraryfile'>libgs.so</filename>, run the
184 following additional command as an unprivileged user:</para>
185
186<screen><userinput>make so</userinput></screen>
187
188 <para>This package does not come with a test suite. However, you may test
189 the operation of the newly built <command>gs</command> program by
190 issuing the following command (issue from an X Windows terminal):</para>
191
192 <screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
193
194 <para>Now, as the <systemitem class="username">root</systemitem>
195 user:</para>
196
197<screen role="root"><userinput>make install</userinput></screen>
198
199 <para>If you want the shared library too:</para>
200
201<screen role="root"><userinput>make soinstall &amp;&amp;
202install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
203ln -v -s ghostscript /usr/include/ps</userinput></screen>
204
205 <para>Now install the documentation:</para>
206
207<screen role="root"><userinput>cp -rf doc /usr/share/ghostscript/&gs-version; &amp;&amp;
208ln -sv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
209
210 <para>To finish the installation, unpack all fonts you've downloaded to
211 <filename class="directory">/usr/share/ghostscript</filename> and ensure
212 the ownerships of the files are
213 <systemitem class="username">root</systemitem>:
214 <systemitem class="groupname">root</systemitem>. Substitute
215 <replaceable>&lt;font-tarball&gt;</replaceable> appropriately in
216 the command below for the fonts you wish to install:</para>
217
218<screen role="root"><userinput>tar -xvf ../<replaceable>&lt;font-tarball&gt;</replaceable> -C /usr/share/ghostscript --no-same-owner</userinput></screen>
219
220 </sect2>
221
222 <sect2 role="commands">
223 <title>Command Explanations</title>
224
225 <!-- works fine on 32 bit systems for me - Andrew Benton
226 <para><command>with-drivers=ALL,x11</command>: This parameter adds the
227 <literal>x11</literal> output device to the default (<literal>ALL</literal>)
228 selection so that the test to render the tiger will work on 32-bit systems
229 (this does no harm on the <literal>x86_64</literal> architecture, although
230 it is not required there).</para> -->
231
232 <!-- The build fails for me with this option with ghostscript-9.04 and
233 zlib-1.2.5 - Andrew Benton
234 <para><command>disable-compile-inits</command>: This parameter is intended
235 to avoid compiling initialization files into the executables. It is used
236 here to simplify building against the system version of
237 <application>zlib</application>.</para> -->
238
239 <para><option>--without-jasper</option>: If you know you do not wish to
240 print any <literal>JPEG2000</literal> files, this switch (and removing the
241 <filename class="directory">jasper</filename> folder in the source) will
242 disable JPEG2000 support in <application>Ghostscript</application>.</para>
243
244 <para><option>--without-jbig2dec</option>: The <literal>JBIG2</literal>
245 decompression code (used for some faxes) can be disabled by using this
246 switch and removing the <filename class="directory">jbig2dec/</filename>
247 source.</para>
248
249 <para><command>install -v -m644 base/*.h...</command>: Some packages
250 (<application>ImageMagick</application> is one) need the
251 <application>Ghostscript</application> interface headers in place to link
252 to the shared library. These commands install the headers.</para>
253
254 <para><command>ln -sv ../ghostscript-&gs-version;/doc ...</command>:
255 This puts a symbolic link to the documentation where it is expected to be
256 found.</para>
257
258 <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
259 expect to find the interface headers in an alternate location.</para>
260
261 </sect2>
262
263 <sect2 role="content">
264 <title>Contents</title>
265 <segmentedlist>
266 <segtitle>Installed Programs</segtitle>
267 <segtitle>Installed Library</segtitle>
268 <segtitle>Installed Directories</segtitle>
269
270 <seglistitem>
271 <seg>bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
272 gsc (from soinstall), gsdj, gsdj500, gslj, gslp, gsnd, gsx
273 (from soinstall), lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
274 pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
275 ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
276 wftopfa</seg>
277 <seg>libgs.so </seg>
278 <seg>/usr/include/ghostscript, /usr/lib/ghostscript,
279 /usr/share/ghostscript,
280 and /usr/share/doc/ghostscript-&gs-version;</seg>
281 </seglistitem>
282 </segmentedlist>
283
284 <variablelist>
285 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
286 <?dbfo list-presentation="list"?>
287 <?dbhtml list-presentation="table"?>
288
289 <varlistentry id="gplgs-prog">
290 <term><command>gs</command></term>
291 <listitem>
292 <para>is an interpreter for Adobe Systems' PostScript(tm) and Portable
293 Document Format (PDF).</para>
294 <indexterm zone="gs gplgs-prog">
295 <primary sortas="b-gs">gs</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="libgs.so">
301 <term><filename class="libraryfile">libgs.so</filename></term>
302 <listitem>
303 <para>provides <application>Ghostscript</application> functionality
304 to other programs, such as <application>GSView</application>,
305 <application>ImageMagick</application>, and
306 <application>libspectre</application>.</para>
307 <indexterm zone="gs libgs.so">
308 <primary sortas="c-libgs.so">libgs.so</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 </variablelist>
314
315 <para><application>GPL Ghostscript</application> provides many different
316 scripts used to convert PostScript, PDF, and other formats. Please refer to
317 the HTML documentation or the man pages for information about the
318 capabilities provided.</para>
319
320 </sect2>
321
322</sect1>
Note: See TracBrowser for help on using the repository browser.