source: pst/printing/gs.xml@ 3b10fa8

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 3b10fa8 was 3b10fa8, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Remove obsolete gtk+1, glib1, xmms, gsview.
Return glib2 to latest stable: glib-2.30.1.

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

  • Property mode set to 100644
File size: 14.5 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.gz">
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 "a402462478b4cdda3e1816899227b845">
14 <!ENTITY gs-size "22.3 MB">
15 <!ENTITY gs-buildsize "170 MB (includes installing libgs.so and both font tarballs)">
16 <!ENTITY gs-time "2.7 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 &lfs67_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 <itemizedlist spacing="compact">
102 <title>Patches</title>
103 <listitem>
104 <para>Required patch: <ulink
105 url="&patch-root;/ghostscript-&gs-version;-security_fixes-1.patch"/>
106 </para>
107 </listitem>
108 <listitem>
109 <para>Recommended patch (unless you build without JPEG2000 support) : <ulink
110 url="&patch-root;/ghostscript-&gs-version;-system_jasper-1.patch"/>
111 </para>
112 </listitem>
113 </itemizedlist>
114
115 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
116
117 <bridgehead renderas="sect4">Recommended</bridgehead>
118 <para role="optional"><xref linkend="expat"/>,
119 <xref linkend="freetype2"/>,
120 <xref linkend="jasper"/>
121 <xref linkend="libjpeg"/>,
122 <xref linkend="libpng"/>,
123 <xref linkend="libtiff"/>, and
124 <xref linkend="lcms"/></para>
125
126 <bridgehead renderas="sect4">Optional</bridgehead>
127 <para role="optional">
128 <xref linkend="cairo"/>,
129 <xref linkend="fontconfig"/>,
130 <xref linkend="gtk2"/>,
131 <xref linkend="cups"/>,
132 <xref linkend="libidn"/>,
133 <xref linkend="x-window-system"/>, and
134 <!-- the link for ijs source ultimately takes users back to the ghostscript site
135 <ulink url="http://www.linuxprinting.org/ijs/">IJS</ulink>, and -->
136 <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink></para>
137
138 <para condition="html" role="usernotes">User Notes:
139 <ulink url="&blfs-wiki;/gs"/></para>
140
141 </sect2>
142
143 <sect2 role="installation">
144 <title>Installation of Ghostscript</title>
145
146 <para>Install <application>GPL Ghostscript</application> by running the
147 following commands:</para>
148
149 <note>
150 <para>The <application>Ghostscript</application> build system is not
151 user-friendly. In order to use system copies of various graphics
152 libraries, you must do it using unconventional methods.</para>
153 </note>
154
155 <para>Begin by patching some vulnerabilities:</para>
156
157<screen><userinput>patch -Np1 -i ../ghostscript-&gs-version;-security_fixes-1.patch
158</userinput></screen>
159
160 <para><application>GPL Ghostscript</application> includes (old) copies of
161 several libraries. Some of these seem to have been patched to fix known
162 vulnerabilities, but others of these copies are less-well maintained.
163 To ensure that any future fixes are applied throughout the whole system,
164 it is recommended that you build the released versions of these libraries
165 and then configure <application>GPL Ghostscript</application> to link to
166 them. This configuration has several steps.</para>
167
168 <para>Unless you intend to build <application>GPL Ghostscript</application>
169 without support for <literal>JPEG2000</literal> files, apply a patch to
170 allow it to build against a current system-installed version of
171 <application>JasPer</application>:</para>
172
173<screen><userinput>patch -Np1 -i ../ghostscript-&gs-version;-system_jasper-1.patch
174</userinput></screen>
175
176 <para>Remove the local copies of <application>expat</application>,
177 <application>JasPer</application>, <application>lcms</application>,
178 <application>libjpeg</application>, <application>libpng</application>,
179 <application>libtiff</application>, and <application>zlib</application>:
180 </para>
181
182<screen><userinput>rm -rf expat jasper lcms jpeg libpng tiff zlib
183</userinput></screen>
184
185 <para>Run the configure command:</para>
186
187<screen><userinput>./configure --prefix=/usr --enable-dynamic --with-drivers=ALL,x11 --with-system-libtiff --disable-compile-inits</userinput></screen>
188
189 <para>To ensure the build is able to use the system versions of
190 <application>expat</application>, <application>freetype</application>, and
191 <application>lcms</application> it is necessary to make some changes and an
192 addition to the <literal>Makefile</literal> before building the package:</para>
193
194<screen><userinput>sed -i -e 's|SHARE_LCMS=0|SHARE_LCMS=1|' \
195 -e 's|LCMSSRCDIR=lcms|LCMSSRCDIR=/usr|' \
196 -e 's|=imdi|&amp;\n\n# Use system expat library\n\nSHARE_EXPAT=1|' \
197 -e 's|SHARE_FT=0|SHARE_FT=1|' Makefile &amp;&amp;
198make</userinput></screen>
199
200 <para>This package does not come with a test suite. However, you may test
201 the operation of the newly built <command>gs</command> program by
202 issuing the following command (issue from an X Windows terminal):</para>
203
204 <screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
205
206 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
207
208<!-- for 9.00 docdir is only referenced by GS_DOCDIR which is itself not referenced
209 so the docs still go into /usr/share/ghostscript/9.00/
210<screen role="root"><userinput>make install docdir=/usr/share/doc/ghostscript-&gs-version; &amp;&amp;-->
211<screen role="root"><userinput>make install &amp;&amp;
212for INSTFILE in `ls doc`
213do
214 <!--if [ ! -f /usr/share/doc/ghostscript-&gs-version;/$INSTFILE ]; then -->
215 if [ ! -f /usr/share/ghostscript/&gs-version;/doc/$INSTFILE ]; then
216 install -v -m644 doc/$INSTFILE \
217 /usr/share/ghostscript/&gs-version;/doc
218 <!--/usr/share/doc/ghostscript-&gs-version;-->
219 fi
220done &amp;&amp;
221
222<!--install -v -m755 -d /usr/share/doc/ghostscript-&gs-version;/figures &amp;&amp;-->
223install -v -m755 -d /usr/share/ghostscript/&gs-version;/doc/figures &amp;&amp;
224install -v -m644 doc/figures/* \
225 /usr/share/ghostscript/&gs-version;/doc/figures &amp;&amp;
226 <!--/usr/share/doc/ghostscript-&gs-version;/figures-->
227ln -sv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;
228</userinput></screen>
229
230 <para>To install the shared library
231 <filename class='libraryfile'>libgs.so</filename>, run the
232 following additional command as an unprivileged user:</para>
233
234<screen><userinput>make so</userinput></screen>
235
236 <para>And again as the <systemitem class="username">root</systemitem>
237 user:</para>
238
239<screen role="root"><userinput>make soinstall docdir=/usr/share/doc/ghostscript-&gs-version; &amp;&amp;
240install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
241ln -v -s ghostscript /usr/include/ps</userinput></screen>
242
243 <note>
244 <para>The shared library depends on <xref linkend="gtk2"/>. It is
245 only used in external programs like <!-- <xref linkend="gsview"/> and -->
246 <xref linkend="imagemagick"/>.</para>
247 </note>
248
249 <para>To finish the installation, unpack all fonts you've downloaded to
250 <filename class="directory">/usr/share/ghostscript</filename> and ensure
251 the ownerships of the files are
252 <systemitem class="username">root</systemitem>:<systemitem
253 class="groupname">root</systemitem>. Substitute
254 <replaceable>&lt;font-tarball&gt;</replaceable> appropriately in
255 the command below for the fonts you wish to install:</para>
256
257<screen role="root"><userinput>tar -xvf ../<replaceable>&lt;font-tarball&gt;</replaceable> \
258 -C /usr/share/ghostscript --no-same-owner</userinput></screen>
259
260 </sect2>
261
262 <sect2 role="commands">
263 <title>Command Explanations</title>
264
265 <para><command>--with-drivers=ALL,x11</command>: This parameter adds the
266 <literal>x11</literal> output device to the default (<literal>ALL</literal>)
267 selection so that the test to render the tiger will work on 32-bit systems
268 (this does no harm on the <literal>x86_64</literal> architecture, although
269 it is not required there).</para>
270 <para><command>--disable-compile-inits</command>: This parameter is intended
271 to avoid compiling initialization files into the executables. It is used here
272 to simplify building agaisnt the system version of
273 <application>zlib</application>.</para>
274 <para><option>--without-jasper</option>: If you know you do not wish to print
275 any <literal>JPEG2000</literal> files, this switch (and removing the
276 <filename class="directory">jasper/</filename> source) will achieve this.</para>
277 <para><option>--without-jbig2dec</option>: The <literal>JBIG2</literal>
278 decompression code (used for some faxes) can be disabled by using this switch
279 and removing the <filename class="directory">jbig2dec/</filename> source.</para>
280 <para><command>install ...</command>: Some packages
281 (<application>ImageMagick</application> is one) need the
282 <application>Ghostscript</application> interface headers in place to link
283 to the shared library. These commands install the headers.</para>
284
285 <para><command>ln -sv ... /usr/share/doc/ghostscript-&gs-version;</command>: This puts
286 the documentation where it is expected to be found.</para>
287
288 <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some
289 packages expect to find the interface headers in an alternate
290 location.</para>
291
292 </sect2>
293
294 <sect2 role="content">
295 <title>Contents</title>
296 <segmentedlist>
297 <segtitle>Installed Programs</segtitle>
298 <segtitle>Installed Library</segtitle>
299 <segtitle>Installed Directories</segtitle>
300
301 <seglistitem>
302 <seg>bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
303 gsc (from soinstall), gsdj, gsdj500, gslj, gslp, gsnd, gsx (from soinstall),
304 lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
305 pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
306 ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
307 wftopfa</seg>
308 <seg>libgs.so </seg>
309 <seg>/usr/include/ghostscript, /usr/lib/ghostscript, /usr/share/ghostscript,
310 <!--and /usr/share/doc/ghostscript</seg>-->
311 and /usr/share/doc/ghostscript-&gs-version;</seg>
312 </seglistitem>
313 </segmentedlist>
314
315 <variablelist>
316 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
317 <?dbfo list-presentation="list"?>
318 <?dbhtml list-presentation="table"?>
319
320 <varlistentry id="gplgs-prog">
321 <term><command>gs</command></term>
322 <listitem>
323 <para>is an interpreter for Adobe Systems' PostScript(tm) and Portable Document Format
324 (PDF).</para>
325 <indexterm zone="gs gplgs-prog">
326 <primary sortas="b-gs">gs</primary>
327 </indexterm>
328 </listitem>
329 </varlistentry>
330
331 <varlistentry id="libgs.so">
332 <term><filename class="libraryfile">libgs.so</filename></term>
333 <listitem>
334 <para>provides <application>Ghostscript</application> functionality
335 to other programs, such as <application>GSView</application>,
336 <application>ImageMagick</application>, and
337 <application>libspectre</application>.</para>
338 <indexterm zone="gs libgs.so">
339 <primary sortas="c-libgs.so">libgs.so</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 </variablelist>
345
346 <para><application>GPL Ghostscript</application> provides many different
347 scripts used to convert PostScript, PDF, and other formats. Please refer to
348 the HTML documentation or the man pages for information about the
349 capabilities provided.</para>
350
351 </sect2>
352
353</sect1>
Note: See TracBrowser for help on using the repository browser.