source: pst/printing/gs.xml@ 6e5e4d2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6e5e4d2 was e54771c, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Update to ImageMagick-7.0.1-1.
Fix/Mark several packages for gcc6.

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

  • Property mode set to 100644
File size: 11.9 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
[6b58d592]7 <!ENTITY gs-download-http
[4886a74]8 "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs919/ghostscript-&gs-version;.tar.gz">
[de109d93]9 <!ENTITY gs-download-ftp " ">
[4886a74]10 <!ENTITY gs-md5sum "c9682ce6b852f9197c69905a43928907">
11 <!ENTITY gs-size "32 MB">
12 <!ENTITY gs-buildsize "156 MB (with fonts and libgs.so)">
13 <!ENTITY gs-time "2.6 SBU (with libgs.so)">
[100786d]14
[95b8c6d]15 <!ENTITY gs-standard-fonts-download
16 "&sourceforge-repo;/gs-fonts/ghostscript-fonts-std-8.11.tar.gz">
[00b6675]17 <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
[100786d]18 <!ENTITY gs-standard-fonts-size "3.7 MB">
[00b6675]19
[95b8c6d]20 <!ENTITY gs-other-fonts-download
21 "&sourceforge-repo;/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz">
[100786d]22 <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
23 <!ENTITY gs-other-fonts-size "796 KB">
[73ddd1a0]24]>
25
[a027d7d3]26<sect1 id="gs" xreflabel="ghostscript-&gs-version;">
[ed30f09]27 <?dbhtml filename="gs.html"?>
28
29 <sect1info>
30 <othername>$LastChangedBy$</othername>
31 <date>$Date$</date>
32 </sect1info>
33
[a027d7d3]34 <title>ghostscript-&gs-version;</title>
[ed30f09]35
36 <indexterm zone="gs">
[aa8ef3bc]37 <primary sortas="a-GPL-Ghostscript">GPL Ghostscript</primary>
[ed30f09]38 </indexterm>
39
40 <sect2 role="package">
41 <title>Introduction to Ghostscript</title>
42
43 <para><application>Ghostscript</application> is a versatile processor
44 for PostScript data with the ability to render PostScript to different
[933ceec]45 targets. It used to be part of the cups printing stack, but is no longer
46 used for that.</para>
[ed30f09]47
[730a1810]48 &lfs79_checked;
[e54771c]49 &gcc6_checked;
[aa8ef3bc]50
[ed30f09]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
[933ceec]75 <para>If you wish, you can download additional fonts.</para>
76
[6b58d592]77 <itemizedlist spacing="compact">
[ed30f09]78 <title>Standard Fonts</title>
79 <listitem>
[01c2a351]80 <para>Download (HTTP): <ulink url="&gs-standard-fonts-download;"/></para>
[ed30f09]81 </listitem>
82 <listitem>
83 <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
84 </listitem>
85 <listitem>
86 <para>Download size: &gs-standard-fonts-size;</para>
87 </listitem>
88 </itemizedlist>
89
[6b58d592]90 <itemizedlist spacing="compact">
[ed30f09]91 <title>Other Fonts</title>
92 <listitem>
93 <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
94 </listitem>
95 <listitem>
96 <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
97 </listitem>
98 <listitem>
99 <para>Download size: &gs-other-fonts-size;</para>
100 </listitem>
101 </itemizedlist>
102
[b29ed97c]103 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
[ed30f09]104
[de109d93]105 <bridgehead renderas="sect4">Recommended</bridgehead>
[2d37d32]106 <para role="recommended">
107 <xref linkend="freetype2"/>,
108 <xref linkend="libjpeg"/>,
[933ceec]109 <xref linkend="libpng"/>,
[1df1b16]110 <xref linkend="libtiff"/>, and
111 <xref linkend="lcms2"/>
[2d37d32]112 </para>
[de109d93]113
114 <bridgehead renderas="sect4">Optional</bridgehead>
[2d37d32]115 <para role="optional">
116 <xref linkend="cairo"/>,
[1ecdb18]117 <xref linkend="cups"/>,
[142f958b]118 <xref linkend="fontconfig"/> (required, if you are installing any
119 suggested font),
[2d37d32]120 <xref linkend="gtk2"/>,
121 <xref linkend="libidn"/>,
[1ecdb18]122 <xref linkend="libpaper"/>,
123 <xref linkend="lcms"/> (not used by default, nor if lcms2 is present or found), and
124 <xref linkend="x-window-system"/>
[2d37d32]125 </para>
126
127 <para condition="html" role="usernotes">
128 User Notes: <ulink url="&blfs-wiki;/gs"/>
129 </para>
[ed30f09]130 </sect2>
131
132 <sect2 role="installation">
133 <title>Installation of Ghostscript</title>
134
[2d37d32]135 <note>
136 <para>
137 The <application>Ghostscript</application> build system is not
138 user-friendly. In order to use system copies of various graphics
139 libraries, you must do it using unconventional methods.
140 </para>
141 </note>
[100786d]142
[2d37d32]143 <para>
144 <application>GPL Ghostscript</application> includes (old) copies of
[de109d93]145 several libraries. Some of these seem to have been patched to fix known
146 vulnerabilities, but others of these copies are less-well maintained.
147 To ensure that any future fixes are applied throughout the whole system,
[2d37d32]148 it is recommended that you first install the released versions of these
[d453af5]149 libraries and then configure <application>GPL Ghostscript</application>
[2d37d32]150 to link to them.
151 </para>
[d453af5]152
[2d37d32]153 <para>
[4886a74]154 If you have installed the recommended dependencies on your system,
155 remove the copies of
[1df1b16]156 <application>freetype</application>, <application>lcms2</application>,
[933ceec]157 <application>libjpeg</application>, and <application>libpng</application>:
[2d37d32]158 </para>
[ed30f09]159
[4886a74]160<screen><userinput>rm -rf freetype lcms2 jpeg libpng</userinput></screen>
[2d37d32]161
[6b58d592]162 <para>Compile <application>Ghostscript</application>:</para>
[de109d93]163
[f19b432b]164<screen><userinput>rm -rf zlib &amp;&amp;
[60d53ec3]165
166./configure --prefix=/usr \
167 --disable-compile-inits \
168 --enable-dynamic \
169 --with-system-libtiff &amp;&amp;
[038ea6ba]170make</userinput></screen>
171
[d453af5]172 <note>
[2d37d32]173 <para>
174 The shared library depends on <xref linkend="gtk2"/>. It is only used in
[347e59c]175 external programs like <xref linkend="asymptote"/> and
176 <xref linkend="imagemagick"/>.
[2d37d32]177 </para>
[d453af5]178 </note>
[038ea6ba]179
[2d37d32]180 <para>
181 To compile the shared library
182 <filename class="libraryfile">libgs.so</filename>, run the following
183 additional command as an unprivileged user:
184 </para>
[038ea6ba]185
186<screen><userinput>make so</userinput></screen>
[73ddd1a0]187
[2d37d32]188 <para>
[a2a37c7]189 This package does not come with a test suite. A set of example files
190 may be used for testing, but it is only possible after installation
191 of the package.
[2d37d32]192 </para>
[d453af5]193
[2d37d32]194 <para>
195 Now, as the <systemitem class="username">root</systemitem> user:
196 </para>
[038ea6ba]197
[d453af5]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;
[aa8ef3bc]203install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
204ln -v -s ghostscript /usr/include/ps</userinput></screen>
[73ddd1a0]205
[933ceec]206 <para>Now make the documentation accessible from the normal place:</para>
[d453af5]207
[41d241e]208<screen role="root"><userinput>ln -sfvn ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
[73ddd1a0]209
[2d37d32]210 <para>
[933ceec]211 If you have downloaded any fonts, unpack them to
[2d37d32]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 the
217 command below for the fonts you wish to install:
218 </para>
[038ea6ba]219
[142f958b]220<screen role="root"><userinput>tar -xvf ../<replaceable>&lt;font-tarball&gt;</replaceable> -C /usr/share/ghostscript --no-same-owner &amp;&amp;
221fc-cache -v /usr/share/ghostscript/fonts/</userinput></screen>
[a2a37c7]222
223 <para>
224 You can now test the rendering of various postscript and pdf files from the
225 <filename class="directory">/usr/share/ghostscript/&gs-version;/examples
226 </filename>, for example (you need an X window system display):
227 </para>
228
229<screen><userinput>gs -q -dBATCH /usr/share/ghostscript/&gs-version;/examples/tiger.eps</userinput></screen>
230
[ed30f09]231 </sect2>
[73ddd1a0]232
[2ddf71a5]233 <sect2 role="commands">
234 <title>Command Explanations</title>
235
[2d37d32]236 <para>
[f19b432b]237 <command>rm -rf zlib </command>: <application>zlib</application>
238 was installed as part of LFS.
[2d37d32]239 </para>
240
241 <para>
[2bb5c32]242 <parameter>--disable-compile-inits</parameter>: This option makes
[933ceec]243 <command>gs</command> and <filename>libgs.so</filename> slightly smaller.
[2d37d32]244 </para>
245
246 <para>
[142f958b]247 <parameter>--with-system-libtiff</parameter>: Remove this option if
248 you've not installed <xref linkend="libtiff"/>.
[2d37d32]249 </para>
250
251 <para>
[81f0120]252 <command>install -v -m644 base/*.h... </command>: Some packages
[2d37d32]253 (<application>ImageMagick</application> is one) need the
254 <application>Ghostscript</application> interface headers in place to link
255 to the shared library. These commands install the headers.
256 </para>
257
258 <para>
259 <command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
260 expect to find the interface headers in an alternate location.
261 </para>
262
263 <para>
[81f0120]264 <command>ln -sfv ../ghostscript-&gs-version;/doc ... </command>: This puts
[2d37d32]265 a symbolic link to the documentation where it is expected to be found.
266 </para>
[933ceec]267
268 <para>
269 <option>--disable-cups</option>: this option will save a tiny amount of
270 space by not linking <command>gs</command> and <filename>libgs.so</filename>
271 to the <xref linkend="cups"/> libraries if you have installed those.
272 </para>
[2ddf71a5]273 </sect2>
274
[ed30f09]275 <sect2 role="content">
276 <title>Contents</title>
[038ea6ba]277 <segmentedlist>
278 <segtitle>Installed Programs</segtitle>
279 <segtitle>Installed Library</segtitle>
280 <segtitle>Installed Directories</segtitle>
281
282 <seglistitem>
[2d37d32]283 <seg>
[81f0120]284 dvipdf, eps2eps, font2c, gs, gsbj, gsc (from soinstall), gsdj,
285 gsdj500, gslj, gslp, gsnd, gsx (from soinstall), lprsetup.sh,
286 pdf2dsc, pdf2ps, pf2afm, pfbtopfa, pphs, printafm, ps2ascii,
287 ps2epsi, ps2pdf, ps2pdf12, ps2pdf13, ps2pdf14, ps2pdfwr,
288 ps2ps, ps2ps2, unix-lpr.sh, and wftopfa
[933ceec]289 <!-- I don't see bdftops,fixmswrd.pl or pv.sh on my builds [ I don't
290 have any bdf tools from xorg ] but they are still referenced in
291 base/unixinst.mak -->
[2d37d32]292 </seg>
[81f0120]293 <seg>libgs.so and
294 /usr/lib/ghostscript/&gs-version;/X11.so</seg>
[2d37d32]295 <seg>
296 /usr/include/ghostscript,
297 /usr/lib/ghostscript,
[019052a1]298 /usr/share/ghostscript, and
[2d37d32]299 /usr/share/doc/ghostscript-&gs-version;
300 </seg>
[038ea6ba]301 </seglistitem>
302 </segmentedlist>
303
304 <variablelist>
305 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
306 <?dbfo list-presentation="list"?>
307 <?dbhtml list-presentation="table"?>
308
[d891148c]309 <varlistentry id="gplgs-prog">
[038ea6ba]310 <term><command>gs</command></term>
311 <listitem>
[2d37d32]312 <para>
313 is an interpreter for Adobe Systems' PostScript(tm) and Portable
314 Document Format (PDF).
315 </para>
[d891148c]316 <indexterm zone="gs gplgs-prog">
[038ea6ba]317 <primary sortas="b-gs">gs</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
[d891148c]322 <varlistentry id="libgs.so">
323 <term><filename class="libraryfile">libgs.so</filename></term>
324 <listitem>
[2d37d32]325 <para>
326 provides <application>Ghostscript</application> functionality to
327 other programs, such as <application>GSView</application>,
328 <application>ImageMagick</application>, and
329 <application>libspectre</application>.
330 </para>
[d891148c]331 <indexterm zone="gs libgs.so">
332 <primary sortas="c-libgs.so">libgs.so</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
[038ea6ba]336 </variablelist>
337
[2d37d32]338 <para>
339 <application>GPL Ghostscript</application> provides many different
340 scripts used to convert PostScript, PDF, and other formats. Please refer to
341 the HTML documentation or the man pages for information about the
342 capabilities provided.
343 </para>
[ed30f09]344 </sect2>
[cabb2de]345</sect1>
Note: See TracBrowser for help on using the repository browser.