source: pst/printing/gs.xml@ 67f5f160

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 67f5f160 was 69f94a4, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

Fix ghostscript numbers

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11711 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
8 "http://downloads.ghostscript.com/public/ghostscript-&gs-version;.tar.bz2">
[de109d93]9 <!ENTITY gs-download-ftp " ">
[69f94a4]10 <!ENTITY gs-md5sum "4f47c29daae8e567ebdef842b7e0f8ea">
11 <!ENTITY gs-size "30 MB">
[95b8c6d]12 <!ENTITY gs-buildsize
[933ceec]13 "189 MB (includes installing libgs.so, add 5 MB if the fonts are installed)">
[95b8c6d]14 <!ENTITY gs-time
[933ceec]15 "2.2 SBU (includes building and installing libgs.so)">
[100786d]16
[95b8c6d]17 <!ENTITY gs-standard-fonts-download
18 "&sourceforge-repo;/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
23 "&sourceforge-repo;/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">
[aa8ef3bc]39 <primary sortas="a-GPL-Ghostscript">GPL Ghostscript</primary>
[ed30f09]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
[933ceec]47 targets. It used to be part of the cups printing stack, but is no longer
48 used for that.</para>
[ed30f09]49
[933ceec]50 &lfs74_checked;
[aa8ef3bc]51
[ed30f09]52 <bridgehead renderas="sect3">Package Information</bridgehead>
53 <itemizedlist spacing="compact">
54 <listitem>
55 <para>Download (HTTP): <ulink url="&gs-download-http;"/></para>
56 </listitem>
57 <listitem>
58 <para>Download (FTP): <ulink url="&gs-download-ftp;"/></para>
59 </listitem>
60 <listitem>
61 <para>Download MD5 sum: &gs-md5sum;</para>
62 </listitem>
63 <listitem>
64 <para>Download size: &gs-size;</para>
65 </listitem>
66 <listitem>
67 <para>Estimated disk space required: &gs-buildsize;</para>
68 </listitem>
69 <listitem>
70 <para>Estimated build time: &gs-time;</para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
75
[933ceec]76 <para>If you wish, you can download additional fonts.</para>
77
[6b58d592]78 <itemizedlist spacing="compact">
[ed30f09]79 <title>Standard Fonts</title>
80 <listitem>
81 <para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para>
82 </listitem>
83 <listitem>
84 <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
85 </listitem>
86 <listitem>
87 <para>Download size: &gs-standard-fonts-size;</para>
88 </listitem>
89 </itemizedlist>
90
[6b58d592]91 <itemizedlist spacing="compact">
[ed30f09]92 <title>Other Fonts</title>
93 <listitem>
94 <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
95 </listitem>
96 <listitem>
97 <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
98 </listitem>
99 <listitem>
100 <para>Download size: &gs-other-fonts-size;</para>
101 </listitem>
102 </itemizedlist>
103
[b29ed97c]104 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
[ed30f09]105
[de109d93]106 <bridgehead renderas="sect4">Recommended</bridgehead>
[2d37d32]107 <para role="recommended">
108 <xref linkend="expat"/>,
109 <xref linkend="freetype2"/>,
110 <xref linkend="libjpeg"/>,
[933ceec]111 <xref linkend="libpng"/>,
[1df1b16]112 <xref linkend="libtiff"/>, and
113 <xref linkend="lcms2"/>
[2d37d32]114 </para>
[de109d93]115
116 <bridgehead renderas="sect4">Optional</bridgehead>
[2d37d32]117 <para role="optional">
118 <xref linkend="cairo"/>,
119 <xref linkend="fontconfig"/>,
120 <xref linkend="gtk2"/>,
121 <xref linkend="cups"/>,
[933ceec]122 <xref linkend="lcms"/> (not used by default, nor if lcms2 is present or found),
[2d37d32]123 <xref linkend="libidn"/>,
124 <xref linkend="x-window-system"/> and
125 <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>
126 </para>
127
128 <para condition="html" role="usernotes">
129 User Notes: <ulink url="&blfs-wiki;/gs"/>
130 </para>
[ed30f09]131 </sect2>
132
133 <sect2 role="installation">
134 <title>Installation of Ghostscript</title>
135
[2d37d32]136 <note>
137 <para>
138 The <application>Ghostscript</application> build system is not
139 user-friendly. In order to use system copies of various graphics
140 libraries, you must do it using unconventional methods.
141 </para>
142 </note>
[100786d]143
[2d37d32]144 <para>
145 <application>GPL Ghostscript</application> includes (old) copies of
[de109d93]146 several libraries. Some of these seem to have been patched to fix known
147 vulnerabilities, but others of these copies are less-well maintained.
148 To ensure that any future fixes are applied throughout the whole system,
[2d37d32]149 it is recommended that you first install the released versions of these
[d453af5]150 libraries and then configure <application>GPL Ghostscript</application>
[2d37d32]151 to link to them.
152 </para>
[d453af5]153
[2d37d32]154 <para>
155 If you have installed these dependencies on your system, remove the
[d453af5]156 copies of <application>expat</application>,
[1df1b16]157 <application>freetype</application>, <application>lcms2</application>,
[933ceec]158 <application>libjpeg</application>, and <application>libpng</application>:
[2d37d32]159 </para>
[ed30f09]160
[933ceec]161<screen><userinput>rm -rf expat freetype lcms2 jpeg libpng</userinput></screen>
[de109d93]162
[6b58d592]163 <note>
[2d37d32]164 <para>
165 If you have a multicore computer and try to run make with multiple
166 jobs (eg, make -j4) then the build may fail due to race conditions in
167 the <application>Ghostscript</application> build system. You can work
168 around that problem by simply running make again (eg,
[defe82d]169 <command>make -j4 || make -j1</command>).
[2d37d32]170 </para>
171 </note>
172
[6b58d592]173 <para>Compile <application>Ghostscript</application>:</para>
[de109d93]174
[933ceec]175<screen><userinput>rm -rf zlib &amp;&amp;
176./configure --prefix=/usr --disable-compile-inits \
177 --enable-dynamic --with-system-libtiff &amp;&amp;
[038ea6ba]178make</userinput></screen>
179
[d453af5]180 <note>
[2d37d32]181 <para>
182 The shared library depends on <xref linkend="gtk2"/>. It is only used in
183 external programs like <xref linkend="imagemagick"/>.
184 </para>
[d453af5]185 </note>
[038ea6ba]186
[2d37d32]187 <para>
188 To compile the shared library
189 <filename class="libraryfile">libgs.so</filename>, run the following
190 additional command as an unprivileged user:
191 </para>
[038ea6ba]192
193<screen><userinput>make so</userinput></screen>
[73ddd1a0]194
[2d37d32]195 <para>
196 This package does not come with a test suite. However, you may test the
197 operation of the newly built <command>gs</command> program by issuing the
198 following command (issue from an X Windows terminal):
199 </para>
[d453af5]200
[933ceec]201<screen><userinput>bin/gs -Ilib -IResource/Init -dBATCH examples/tiger.eps</userinput></screen>
[d453af5]202
[2d37d32]203 <para>
204 Now, as the <systemitem class="username">root</systemitem> user:
205 </para>
[038ea6ba]206
[d453af5]207<screen role="root"><userinput>make install</userinput></screen>
208
209 <para>If you want the shared library too:</para>
210
211<screen role="root"><userinput>make soinstall &amp;&amp;
[aa8ef3bc]212install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
213ln -v -s ghostscript /usr/include/ps</userinput></screen>
[73ddd1a0]214
[933ceec]215 <para>Now make the documentation accessible from the normal place:</para>
[d453af5]216
[6b58d592]217<screen role="root"><userinput>ln -sfv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
[73ddd1a0]218
[2d37d32]219 <para>
[933ceec]220 If you have downloaded any fonts, unpack them to
[2d37d32]221 <filename class="directory">/usr/share/ghostscript</filename> and ensure
222 the ownerships of the files are
223 <systemitem class="username">root</systemitem>:
224 <systemitem class="groupname">root</systemitem>. Substitute
225 <replaceable>&lt;font-tarball&gt;</replaceable> appropriately in the
226 command below for the fonts you wish to install:
227 </para>
[038ea6ba]228
[d453af5]229<screen role="root"><userinput>tar -xvf ../<replaceable>&lt;font-tarball&gt;</replaceable> -C /usr/share/ghostscript --no-same-owner</userinput></screen>
[ed30f09]230 </sect2>
[73ddd1a0]231
[2ddf71a5]232 <sect2 role="commands">
233 <title>Command Explanations</title>
234
[2d37d32]235 <para>
[933ceec]236 <command>rm -rf zlib</command>:
237 <application>zlib</application> was installed as part of LFS.
[2d37d32]238 </para>
239
240 <para>
[933ceec]241 <command>--disable-compile-inits</command>: This option makes
242 <command>gs</command> and <filename>libgs.so</filename> slightly smaller.
[2d37d32]243 </para>
244
245 <para>
[933ceec]246 <option>--with-system-libtiff</option>: Remove this option if you've not
247 installed <xref linkend="libtiff"/>.
[2d37d32]248 </para>
249
250 <para>
251 <command>install -v -m644 base/*.h...</command>: Some packages
252 (<application>ImageMagick</application> is one) need the
253 <application>Ghostscript</application> interface headers in place to link
254 to the shared library. These commands install the headers.
255 </para>
256
257 <para>
258 <command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
259 expect to find the interface headers in an alternate location.
260 </para>
261
262 <para>
263 <command>ln -sfv ../ghostscript-&gs-version;/doc ...</command>: This puts
264 a symbolic link to the documentation where it is expected to be found.
265 </para>
[933ceec]266
267 <para>
268 <option>--disable-cups</option>: this option will save a tiny amount of
269 space by not linking <command>gs</command> and <filename>libgs.so</filename>
270 to the <xref linkend="cups"/> libraries if you have installed those.
271 </para>
[2ddf71a5]272 </sect2>
273
[ed30f09]274 <sect2 role="content">
275 <title>Contents</title>
[038ea6ba]276 <segmentedlist>
277 <segtitle>Installed Programs</segtitle>
278 <segtitle>Installed Library</segtitle>
279 <segtitle>Installed Directories</segtitle>
280
281 <seglistitem>
[2d37d32]282 <seg>
[933ceec]283 bdftops, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
[2d37d32]284 gsc (from soinstall), gsdj, gsdj500, gslj, gslp, gsnd, gsx
[933ceec]285 (from soinstall), lprsetup.sh, pdf2dsc, pdf2ps,
[2d37d32]286 pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
287 ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
288 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>
[6b58d592]293 <seg>libgs.so</seg>
[2d37d32]294 <seg>
295 /usr/include/ghostscript,
296 /usr/lib/ghostscript,
[019052a1]297 /usr/share/ghostscript, and
[2d37d32]298 /usr/share/doc/ghostscript-&gs-version;
299 </seg>
[038ea6ba]300 </seglistitem>
301 </segmentedlist>
302
303 <variablelist>
304 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
305 <?dbfo list-presentation="list"?>
306 <?dbhtml list-presentation="table"?>
307
[d891148c]308 <varlistentry id="gplgs-prog">
[038ea6ba]309 <term><command>gs</command></term>
310 <listitem>
[2d37d32]311 <para>
312 is an interpreter for Adobe Systems' PostScript(tm) and Portable
313 Document Format (PDF).
314 </para>
[d891148c]315 <indexterm zone="gs gplgs-prog">
[038ea6ba]316 <primary sortas="b-gs">gs</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
[d891148c]321 <varlistentry id="libgs.so">
322 <term><filename class="libraryfile">libgs.so</filename></term>
323 <listitem>
[2d37d32]324 <para>
325 provides <application>Ghostscript</application> functionality to
326 other programs, such as <application>GSView</application>,
327 <application>ImageMagick</application>, and
328 <application>libspectre</application>.
329 </para>
[d891148c]330 <indexterm zone="gs libgs.so">
331 <primary sortas="c-libgs.so">libgs.so</primary>
332 </indexterm>
333 </listitem>
334 </varlistentry>
[038ea6ba]335 </variablelist>
336
[2d37d32]337 <para>
338 <application>GPL Ghostscript</application> provides many different
339 scripts used to convert PostScript, PDF, and other formats. Please refer to
340 the HTML documentation or the man pages for information about the
341 capabilities provided.
342 </para>
[ed30f09]343 </sect2>
[cabb2de]344</sect1>
Note: See TracBrowser for help on using the repository browser.