source: pst/printing/gs.xml@ f863a1b0

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f863a1b0 was f863a1b0, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Update to Net-DNS-1.30 (Perl Module)
Update to libXres-1.2.1 (Xorg Library)
Update to ghostscript-9.54.0

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

  • Property mode set to 100644
File size: 13.2 KB
RevLine 
[ed30f09]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[73ddd1a0]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[00b6675]6
[a5653eb]7 <!-- When updating, ensure gs9xx is updated in url -->
8
[6b58d592]9 <!ENTITY gs-download-http
[b5af71a]10 "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs&gs-packver;/ghostscript-&gs-version;.tar.xz">
[de109d93]11 <!ENTITY gs-download-ftp " ">
[f863a1b0]12 <!ENTITY gs-md5sum "72535d31018129a1a8ff636a47ba1f92">
13 <!ENTITY gs-size "53 MB">
14 <!ENTITY gs-buildsize "342 MB (with fonts and libgs.so)">
15 <!ENTITY gs-time "1.8 SBU (Using parallelism=4; with libgs.so)">
[100786d]16
[95b8c6d]17 <!ENTITY gs-standard-fonts-download
[8dfc5c3]18 "&sourceforge-dl;/gs-fonts/ghostscript-fonts-std-8.11.tar.gz">
[00b6675]19 <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
[100786d]20 <!ENTITY gs-standard-fonts-size "3.7 MB">
[00b6675]21
[95b8c6d]22 <!ENTITY gs-other-fonts-download
[8dfc5c3]23 "&sourceforge-dl;/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz">
[100786d]24 <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
25 <!ENTITY gs-other-fonts-size "796 KB">
[73ddd1a0]26]>
27
[a027d7d3]28<sect1 id="gs" xreflabel="ghostscript-&gs-version;">
[ed30f09]29 <?dbhtml filename="gs.html"?>
30
31 <sect1info>
32 <othername>$LastChangedBy$</othername>
33 <date>$Date$</date>
34 </sect1info>
35
[a027d7d3]36 <title>ghostscript-&gs-version;</title>
[ed30f09]37
38 <indexterm zone="gs">
[0c32749]39 <primary sortas="a-Ghostscript">Ghostscript</primary>
[ed30f09]40 </indexterm>
41
42 <sect2 role="package">
43 <title>Introduction to Ghostscript</title>
44
[fa3edfef]45 <para>
46 <application>Ghostscript</application> is a versatile processor
47 for PostScript data with the ability to render PostScript to different
48 targets. It is a mandatory part of the cups printing stack.
49 </para>
[ed30f09]50
[2b7420b]51 &lfs101_checked;
[aa8ef3bc]52
[ed30f09]53 <bridgehead renderas="sect3">Package Information</bridgehead>
54 <itemizedlist spacing="compact">
55 <listitem>
[fa3edfef]56 <para>
57 Download (HTTP): <ulink url="&gs-download-http;"/>
58 </para>
[ed30f09]59 </listitem>
60 <listitem>
[fa3edfef]61 <para>
62 Download (FTP): <ulink url="&gs-download-ftp;"/>
63 </para>
[ed30f09]64 </listitem>
65 <listitem>
[fa3edfef]66 <para>
67 Download MD5 sum: &gs-md5sum;
68 </para>
[ed30f09]69 </listitem>
70 <listitem>
[fa3edfef]71 <para>
72 Download size: &gs-size;
73 </para>
[ed30f09]74 </listitem>
75 <listitem>
[fa3edfef]76 <para>
77 Estimated disk space required: &gs-buildsize;
78 </para>
[ed30f09]79 </listitem>
80 <listitem>
[fa3edfef]81 <para>
82 Estimated build time: &gs-time;
83 </para>
[ed30f09]84 </listitem>
85 </itemizedlist>
[1bff7a9]86
[f863a1b0]87 <!-- Commenting this out since it's no longer needed, but keeping it for the
88 inevitable next time that we need a patch for this package.
[ed30f09]89 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[c8585068]90 <itemizedlist spacing="compact">
91 <listitem>
92 <para>
93 Required patch:
94 <ulink url="&patch-root;/ghostscript-&gs-version;-freetype_fix-1.patch"/>
95 </para>
96 </listitem>
97 </itemizedlist>
[f863a1b0]98 -->
[c8585068]99
[fa3edfef]100 <para>
101 If you wish, you can download additional fonts.
102 </para>
[933ceec]103
[6b58d592]104 <itemizedlist spacing="compact">
[ed30f09]105 <title>Standard Fonts</title>
106 <listitem>
[fa3edfef]107 <para>
108 Download (HTTP): <ulink url="&gs-standard-fonts-download;"/>
109 </para>
[ed30f09]110 </listitem>
111 <listitem>
[fa3edfef]112 <para>
113 Download MD5 sum: &gs-standard-fonts-md5sum;
114 </para>
[ed30f09]115 </listitem>
116 <listitem>
[fa3edfef]117 <para>
118 Download size: &gs-standard-fonts-size;
119 </para>
[ed30f09]120 </listitem>
121 </itemizedlist>
122
[6b58d592]123 <itemizedlist spacing="compact">
[ed30f09]124 <title>Other Fonts</title>
125 <listitem>
[fa3edfef]126 <para>
127 Download (HTTP): <ulink url="&gs-other-fonts-download;"/>
128 </para>
[ed30f09]129 </listitem>
130 <listitem>
[fa3edfef]131 <para>
132 Download MD5 sum: &gs-other-fonts-md5sum;
133 </para>
[ed30f09]134 </listitem>
135 <listitem>
[fa3edfef]136 <para>
137 Download size: &gs-other-fonts-size;
138 </para>
[ed30f09]139 </listitem>
140 </itemizedlist>
141
[b29ed97c]142 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
[ed30f09]143
[de109d93]144 <bridgehead renderas="sect4">Recommended</bridgehead>
[2d37d32]145 <para role="recommended">
[7524e07]146 <xref linkend="cups"/> (required for building the <quote>cups</quote>
147 device backend, which is needed by
148 <application>cups-filters</application>),
149 <xref linkend="fontconfig"/> (required, if you are installing any
150 suggested font),
[2d37d32]151 <xref linkend="freetype2"/>,
152 <xref linkend="libjpeg"/>,
[933ceec]153 <xref linkend="libpng"/>,
[bb65a3c]154 <xref linkend="libtiff"/>, and
[12341a8]155 <xref linkend="openjpeg2"/>
[2d37d32]156 </para>
[de109d93]157
158 <bridgehead renderas="sect4">Optional</bridgehead>
[2d37d32]159 <para role="optional">
160 <xref linkend="cairo"/>,
[f7153b6]161 <xref linkend="gtk3"/>,
[2d37d32]162 <xref linkend="libidn"/>,
[bb65a3c]163 <xref linkend="libpaper"/>, and
[1ecdb18]164 <xref linkend="x-window-system"/>
[2d37d32]165 </para>
166
167 <para condition="html" role="usernotes">
168 User Notes: <ulink url="&blfs-wiki;/gs"/>
169 </para>
[ed30f09]170 </sect2>
171
172 <sect2 role="installation">
173 <title>Installation of Ghostscript</title>
174
[2d37d32]175 <note>
176 <para>
177 The <application>Ghostscript</application> build system is not
178 user-friendly. In order to use system copies of various graphics
179 libraries, you must do it using unconventional methods.
180 </para>
181 </note>
[100786d]182
[2d37d32]183 <para>
[0c32749]184 <application>Ghostscript</application> includes (old) copies of
[de109d93]185 several libraries. Some of these seem to have been patched to fix known
186 vulnerabilities, but others of these copies are less-well maintained.
187 To ensure that any future fixes are applied throughout the whole system,
[2d37d32]188 it is recommended that you first install the released versions of these
[0c32749]189 libraries and then configure <application>Ghostscript</application>
[2d37d32]190 to link to them.
191 </para>
[d453af5]192
[2d37d32]193 <para>
[4886a74]194 If you have installed the recommended dependencies on your system,
195 remove the copies of
[1df1b16]196 <application>freetype</application>, <application>lcms2</application>,
[12341a8]197 <application>libjpeg</application>, <application>libpng</application>,
198 and <application>openjpeg</application>:
[2d37d32]199 </para>
[ed30f09]200
[12341a8]201<screen><userinput>rm -rf freetype lcms2mt jpeg libpng openjpeg</userinput></screen>
[2d37d32]202
[f863a1b0]203<!--
[c8585068]204 <para>
205 Apply a patch to fix a problem introduced by changes in freetype-2.10.3:
206 </para>
207
208<screen><userinput remap="pre">patch -Np1 -i ../ghostscript-&gs-version;-freetype_fix-1.patch</userinput></screen>
[f863a1b0]209-->
[c8585068]210
[fa3edfef]211 <para>
212 Compile <application>Ghostscript</application>:
213 </para>
[de109d93]214
[595e58e]215<screen><userinput>rm -rf zlib &amp;&amp;
[60d53ec3]216
217./configure --prefix=/usr \
218 --disable-compile-inits \
219 --enable-dynamic \
220 --with-system-libtiff &amp;&amp;
[038ea6ba]221make</userinput></screen>
222
[d453af5]223 <note>
[2d37d32]224 <para>
[9bfd70c]225 The shared library depends on <xref linkend="gtk3"/>. It is only used by
[7ab0957e]226 external programs like <xref linkend="asymptote"/>, <xref
[47d5a9e5]227 linkend="dvisvgm"/>, <xref linkend="imagemagick"/>, and <xref
228 linkend="texlive"/>.
[2d37d32]229 </para>
[d453af5]230 </note>
[038ea6ba]231
[2d37d32]232 <para>
233 To compile the shared library
234 <filename class="libraryfile">libgs.so</filename>, run the following
235 additional command as an unprivileged user:
236 </para>
[038ea6ba]237
238<screen><userinput>make so</userinput></screen>
[73ddd1a0]239
[2d37d32]240 <para>
[a2a37c7]241 This package does not come with a test suite. A set of example files
242 may be used for testing, but it is only possible after installation
243 of the package.
[2d37d32]244 </para>
[d453af5]245
[2d37d32]246 <para>
247 Now, as the <systemitem class="username">root</systemitem> user:
248 </para>
[038ea6ba]249
[d453af5]250<screen role="root"><userinput>make install</userinput></screen>
251
[fa3edfef]252 <para>
253 If you want the shared library too:
254 </para>
[d453af5]255
256<screen role="root"><userinput>make soinstall &amp;&amp;
[aa8ef3bc]257install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
[eff6c3a8]258ln -sfvn ghostscript /usr/include/ps</userinput></screen>
[73ddd1a0]259
[fa3edfef]260 <para>
[f863a1b0]261 Now make the documentation accessible from a standard place:
[fa3edfef]262 </para>
[a0968dcc]263<!-- Starting with 9.23, the install does not seem to copy the examples any more -->
[d453af5]264
[12341a8]265<screen role="root"><userinput>mv -v /usr/share/doc/ghostscript/&gs-version; /usr/share/doc/ghostscript-&gs-version; &amp;&amp;
266rm -rfv /usr/share/doc/ghostscript &amp;&amp;
[654fe2b]267cp -r examples/ /usr/share/ghostscript/&gs-version;/</userinput></screen>
[73ddd1a0]268
[2d37d32]269 <para>
[798c542]270 If you have downloaded the fonts, unpack them to
[2d37d32]271 <filename class="directory">/usr/share/ghostscript</filename> and ensure
[f863a1b0]272 the ownership of the files are
[2d37d32]273 <systemitem class="username">root</systemitem>:
[798c542]274 <systemitem class="groupname">root</systemitem>.
[2d37d32]275 </para>
[038ea6ba]276
[798c542]277<screen role="root"><userinput>tar -xvf ../ghostscript-fonts-std-8.11.tar.gz -C /usr/share/ghostscript --no-same-owner &amp;&amp;
278tar -xvf ../gnu-gs-fonts-other-6.0.tar.gz -C /usr/share/ghostscript --no-same-owner &amp;&amp;
[142f958b]279fc-cache -v /usr/share/ghostscript/fonts/</userinput></screen>
[a2a37c7]280
281 <para>
[f863a1b0]282 You can now test the rendering of various postscript and pdf files from the
[a2a37c7]283 <filename class="directory">/usr/share/ghostscript/&gs-version;/examples
[f863a1b0]284 </filename>. To do this, run the following command (in a X Windows display):
[a2a37c7]285 </para>
286
[c77fb71f]287<screen remap="test"><userinput>gs -q -dBATCH /usr/share/ghostscript/&gs-version;/examples/tiger.eps</userinput></screen>
[a2a37c7]288
[ed30f09]289 </sect2>
[73ddd1a0]290
[2ddf71a5]291 <sect2 role="commands">
292 <title>Command Explanations</title>
293
[2d37d32]294 <para>
[f19b432b]295 <command>rm -rf zlib </command>: <application>zlib</application>
296 was installed as part of LFS.
[2d37d32]297 </para>
298
299 <para>
[2bb5c32]300 <parameter>--disable-compile-inits</parameter>: This option makes
[933ceec]301 <command>gs</command> and <filename>libgs.so</filename> slightly smaller.
[2d37d32]302 </para>
303
304 <para>
[142f958b]305 <parameter>--with-system-libtiff</parameter>: Remove this option if
306 you've not installed <xref linkend="libtiff"/>.
[2d37d32]307 </para>
308
309 <para>
[81f0120]310 <command>install -v -m644 base/*.h... </command>: Some packages
[2d37d32]311 (<application>ImageMagick</application> is one) need the
312 <application>Ghostscript</application> interface headers in place to link
313 to the shared library. These commands install the headers.
314 </para>
315
316 <para>
[eff6c3a8]317 <command>ln -sfvn ghostscript /usr/include/ps</command>: Some packages
[2d37d32]318 expect to find the interface headers in an alternate location.
319 </para>
320
321 <para>
[12341a8]322 <command>mv -v /usr/share/doc/ghostscript/&gs-version;
323 /usr/share/doc/ghostscript-&gs-version;</command>: This moves the
324 documentation where it is expected to be found.
[2d37d32]325 </para>
[933ceec]326
327 <para>
328 <option>--disable-cups</option>: this option will save a tiny amount of
329 space by not linking <command>gs</command> and <filename>libgs.so</filename>
330 to the <xref linkend="cups"/> libraries if you have installed those.
331 </para>
[2ddf71a5]332 </sect2>
333
[ed30f09]334 <sect2 role="content">
335 <title>Contents</title>
[038ea6ba]336 <segmentedlist>
337 <segtitle>Installed Programs</segtitle>
338 <segtitle>Installed Library</segtitle>
339 <segtitle>Installed Directories</segtitle>
340
341 <seglistitem>
[2d37d32]342 <seg>
[0e390db]343 dvipdf, eps2eps, gs, gsbj, gsc (from soinstall), gsdj,
[81f0120]344 gsdj500, gslj, gslp, gsnd, gsx (from soinstall), lprsetup.sh,
345 pdf2dsc, pdf2ps, pf2afm, pfbtopfa, pphs, printafm, ps2ascii,
346 ps2epsi, ps2pdf, ps2pdf12, ps2pdf13, ps2pdf14, ps2pdfwr,
[0e390db]347 ps2ps, ps2ps2, and unix-lpr.sh
[933ceec]348 <!-- I don't see bdftops,fixmswrd.pl or pv.sh on my builds [ I don't
349 have any bdf tools from xorg ] but they are still referenced in
350 base/unixinst.mak -->
[2d37d32]351 </seg>
[81f0120]352 <seg>libgs.so and
353 /usr/lib/ghostscript/&gs-version;/X11.so</seg>
[2d37d32]354 <seg>
355 /usr/include/ghostscript,
356 /usr/lib/ghostscript,
[019052a1]357 /usr/share/ghostscript, and
[2d37d32]358 /usr/share/doc/ghostscript-&gs-version;
359 </seg>
[038ea6ba]360 </seglistitem>
361 </segmentedlist>
362
363 <variablelist>
364 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
365 <?dbfo list-presentation="list"?>
366 <?dbhtml list-presentation="table"?>
367
[d891148c]368 <varlistentry id="gplgs-prog">
[038ea6ba]369 <term><command>gs</command></term>
370 <listitem>
[2d37d32]371 <para>
372 is an interpreter for Adobe Systems' PostScript(tm) and Portable
[4c24eb0a]373 Document Format (PDF)
[2d37d32]374 </para>
[d891148c]375 <indexterm zone="gs gplgs-prog">
[038ea6ba]376 <primary sortas="b-gs">gs</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
[d891148c]381 <varlistentry id="libgs.so">
382 <term><filename class="libraryfile">libgs.so</filename></term>
383 <listitem>
[2d37d32]384 <para>
385 provides <application>Ghostscript</application> functionality to
386 other programs, such as <application>GSView</application>,
387 <application>ImageMagick</application>, and
[4c24eb0a]388 <application>libspectre</application>
[2d37d32]389 </para>
[d891148c]390 <indexterm zone="gs libgs.so">
391 <primary sortas="c-libgs.so">libgs.so</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
[038ea6ba]395 </variablelist>
396
[2d37d32]397 <para>
[0c32749]398 <application>Ghostscript</application> provides many different
[2d37d32]399 scripts used to convert PostScript, PDF, and other formats. Please refer to
400 the HTML documentation or the man pages for information about the
401 capabilities provided.
402 </para>
[ed30f09]403 </sect2>
[4c24eb0a]404
[cabb2de]405</sect1>
Note: See TracBrowser for help on using the repository browser.