source: pst/printing/gs.xml@ 4391436

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 4391436 was 4391436, checked in by Ken Moffat <ken@…>, 13 years ago

Fix typo in gs instructions.

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

  • Property mode set to 100644
File size: 11.7 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 <!ENTITY gs-download-http "http://ghostscript.com/releases/ghostscript-&gs-version;.tar.gz">
9 <!ENTITY gs-download-ftp "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs871/ghostscript-&gs-version;.tar.gz">
10 <!ENTITY gs-md5sum "51a522a5b4818bd3dc7c1c0e9dd22bad">
11 <!ENTITY gs-size "25.2 MB">
12 <!ENTITY gs-buildsize "255 MB (includes installing libgs.so and both font tarballs)">
13 <!ENTITY gs-time "3.3 SBU (includes building and installing libgs.so)">
14
15 <!-- <!ENTITY gs-standard-fonts-download "ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/ghostscript-fonts-std-8.11.tar.gz"> -->
16 <!ENTITY gs-standard-fonts-download "&sourceforge-repo;/gs-fonts/ghostscript-fonts-std-8.11.tar.gz">
17 <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
18 <!ENTITY gs-standard-fonts-size "3.7 MB">
19
20 <!ENTITY gs-other-fonts-download "&sourceforge-repo;/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz">
21 <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
22 <!ENTITY gs-other-fonts-size "796 KB">
23]>
24
25<sect1 id="gs" xreflabel="GPL Ghostscript-&gs-version;">
26 <?dbhtml filename="gs.html"?>
27
28 <sect1info>
29 <othername>$LastChangedBy$</othername>
30 <date>$Date$</date>
31 </sect1info>
32
33 <title>GPL Ghostscript-&gs-version;</title>
34
35 <indexterm zone="gs">
36 <primary sortas="a-GPL-Ghostscript">GPL Ghostscript</primary>
37 </indexterm>
38
39 <sect2 role="package">
40 <title>Introduction to Ghostscript</title>
41
42 <para><application>Ghostscript</application> is a versatile processor
43 for PostScript data with the ability to render PostScript to different
44 targets.</para>
45
46 &lfs65_checked;
47
48 <bridgehead renderas="sect3">Package Information</bridgehead>
49 <itemizedlist spacing="compact">
50 <listitem>
51 <para>Download (HTTP): <ulink url="&gs-download-http;"/></para>
52 </listitem>
53 <listitem>
54 <para>Download (FTP): <ulink url="&gs-download-ftp;"/></para>
55 </listitem>
56 <listitem>
57 <para>Download MD5 sum: &gs-md5sum;</para>
58 </listitem>
59 <listitem>
60 <para>Download size: &gs-size;</para>
61 </listitem>
62 <listitem>
63 <para>Estimated disk space required: &gs-buildsize;</para>
64 </listitem>
65 <listitem>
66 <para>Estimated build time: &gs-time;</para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
71
72 <itemizedlist spacing='compact'>
73 <title>Standard Fonts</title>
74 <listitem>
75 <para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para>
76 </listitem>
77 <listitem>
78 <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
79 </listitem>
80 <listitem>
81 <para>Download size: &gs-standard-fonts-size;</para>
82 </listitem>
83 </itemizedlist>
84
85 <itemizedlist spacing='compact'>
86 <title>Other Fonts</title>
87 <listitem>
88 <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
89 </listitem>
90 <listitem>
91 <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
92 </listitem>
93 <listitem>
94 <para>Download size: &gs-other-fonts-size;</para>
95 </listitem>
96 </itemizedlist>
97
98 <itemizedlist spacing="compact">
99 <title>Patches</title>
100 <listitem>
101 <para>Optional patch: <ulink
102 url="&patch-root;/ghostscript-&gs-version;-system_jasper-1.patch"/>
103 </para>
104 </listitem>
105 </itemizedlist>
106
107 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
108
109 <bridgehead renderas="sect4">Optional</bridgehead>
110 <para role="optional"><xref linkend="libjpeg"/>,
111 <xref linkend="libpng"/>,
112 <xref linkend="libtiff"/>,
113 <xref linkend="jasper"/>,
114 <xref linkend="cairo"/>,
115 <xref linkend="fontconfig"/>,
116 <xref linkend="gtk2"/>,
117 <xref linkend="cups"/>,
118 <xref linkend="x-window-system"/>,
119 <ulink url="http://www.linuxprinting.org/ijs/">IJS</ulink>, and
120 <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink></para>
121
122 <para condition="html" role="usernotes">User Notes:
123 <ulink url="&blfs-wiki;/gs"/></para>
124
125 </sect2>
126
127 <sect2 role="installation">
128 <title>Installation of Ghostscript</title>
129
130 <note>
131 <para>The <application>Ghostscript</application> build system is not
132 user-friendly. In order to use system copies of various graphics
133 libraries, you must do it using unconventional methods.</para>
134
135 <para>First, if you wish to use the system-installed version of
136 <application>JasPer</application>, remove the local copy from the
137 source tree and apply a patch:</para>
138
139<screen><userinput>rm -rf jasper &amp;&amp;
140patch -Np1 -i ../ghostscript-&gs-version;-system_jasper-1.patch</userinput></screen>
141
142 <para>Next, if you wish to use the system-installed copies of
143 <application>libjpeg</application> and <application>libpng</application>,
144 remove the local copies from the source tree:</para>
145
146<screen><userinput>rm -rf jpeg &amp;&amp;
147rm -rf libpng</userinput></screen>
148
149 <para>If you wish to use the system-installed copy of
150 <application>libtiff</application>, add the parameter
151 <option>--with-system-libtiff</option> to the <command>./configure</command>
152 command shown below. Also remove the
153 <filename class='directory'>tiff</filename> directory from the source tree
154 to prevent the <application>Ghostscript</application> build from using any
155 of its local copy.</para>
156
157 <para>Unfortunately, <application>Ghostscript</application> will use local
158 copies of <application>Expat</application> and
159 <application>Zlib</application> from the source tree. There doesn't
160 appear to be an easy way to use system-installed copies of these libraries
161 without doing some hacking of the sources.</para>
162 </note>
163
164 <para>Install <application>GPL Ghostscript</application> by running the
165 following commands:</para>
166
167<screen><userinput>./configure --prefix=/usr --enable-dynamic --with-drivers=ALL,x11 &amp;&amp;
168make</userinput></screen>
169
170 <para>This package does not come with a test suite. However, you may test
171 the operation of the newly built <command>gs</command> program by
172 issuing the following command (issue from an X Windows terminal):</para>
173
174 <screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
175
176 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
177
178<screen role="root"><userinput>make install docdir=/usr/share/doc/ghostscript-&gs-version; &amp;&amp;
179
180for INSTFILE in `ls doc`
181do
182 if [ ! -f /usr/share/doc/ghostscript-&gs-version;/$INSTFILE ]; then
183 install -v -m644 doc/$INSTFILE \
184 /usr/share/doc/ghostscript-&gs-version;
185 fi
186done &amp;&amp;
187
188install -v -m755 -d /usr/share/doc/ghostscript-&gs-version;/figures &amp;&amp;
189install -v -m644 doc/figures/* \
190 /usr/share/doc/ghostscript-&gs-version;/figures</userinput></screen>
191
192 <para>To install the shared library
193 <filename class='libraryfile'>libgs.so</filename>, run the
194 following additional command as an unprivileged user:</para>
195
196<screen><userinput>make so</userinput></screen>
197
198 <para>And again as the <systemitem class="username">root</systemitem>
199 user:</para>
200
201<screen role="root"><userinput>make soinstall docdir=/usr/share/doc/ghostscript-&gs-version; &amp;&amp;
202install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
203ln -v -s ghostscript /usr/include/ps</userinput></screen>
204
205 <note>
206 <para>The shared library depends on <xref linkend="gtk2"/>. It is
207 only used in external programs like <xref linkend="gsview"/> and
208 <xref linkend="imagemagick"/>.</para>
209 </note>
210
211 <para>To finish the installation, unpack all fonts you've downloaded to
212 <filename class="directory">/usr/share/ghostscript</filename> and ensure
213 the ownerships of the files are
214 <systemitem class="username">root</systemitem>:<systemitem
215 class="groupname">root</systemitem>. Substitute
216 <replaceable>&lt;font-tarball&gt;</replaceable> appropriately in
217 the command below for the fonts you wish to install:</para>
218
219<screen role="root"><userinput>tar -xvf ../<replaceable>&lt;font-tarball&gt;</replaceable> \
220 -C /usr/share/ghostscript --no-same-owner</userinput></screen>
221
222 </sect2>
223
224 <sect2 role="commands">
225 <title>Command Explanations</title>
226
227 <para><command>--with-drivers=ALL,x11</command>: This parameter adds the
228 <literal>x11</literal> output device to the default (<literal>ALL</literal>)
229 selection so that the test to render the tiger will work on 32-bit systems
230 (this does no harm on the <literal>x86_64</literal> architecture, although
231 it is not required there).</para>
232 <para><command>install ...</command>: Some packages
233 (<application>ImageMagick</application> is one) need the
234 <application>Ghostscript</application> interface headers in place to link
235 to the shared library. These commands install the headers.</para>
236
237 <!-- <para><command>ln -sv ... /usr/share/doc/ghostscript-&gs-version;</command>: This puts
238 the documentation where it is expected to be found.</para> -->
239
240 <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some
241 packages expect to find the interface headers in an alternate
242 location.</para>
243
244 </sect2>
245
246 <sect2 role="content">
247 <title>Contents</title>
248 <segmentedlist>
249 <segtitle>Installed Programs</segtitle>
250 <segtitle>Installed Library</segtitle>
251 <segtitle>Installed Directories</segtitle>
252
253 <seglistitem>
254 <seg>bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
255 gsdj, gsdj500, gslj, gslp, gsnd, lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
256 pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
257 ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
258 wftopfa</seg>
259 <seg>libgs.so </seg>
260 <seg>/usr/include/ghostscript, /usr/lib/ghostscript, /usr/share/ghostscript,
261 and /usr/share/doc/ghostscript-&gs-version;</seg>
262 </seglistitem>
263 </segmentedlist>
264
265 <variablelist>
266 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
267 <?dbfo list-presentation="list"?>
268 <?dbhtml list-presentation="table"?>
269
270 <varlistentry id="gplgs-prog">
271 <term><command>gs</command></term>
272 <listitem>
273 <para>is an interpreter for Adobe Systems' PostScript(tm) and Portable Document Format
274 (PDF).</para>
275 <indexterm zone="gs gplgs-prog">
276 <primary sortas="b-gs">gs</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="libgs.so">
282 <term><filename class="libraryfile">libgs.so</filename></term>
283 <listitem>
284 <para>provides <application>Ghostscript</application> functionality
285 to other programs, such as <application>GSView</application>,
286 <application>ImageMagick</application>, and
287 <application>libspectre</application>.</para>
288 <indexterm zone="gs libgs.so">
289 <primary sortas="c-libgs.so">libgs.so</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 </variablelist>
295
296 <para><application>GPL Ghostscript</application> provides many different
297 scripts used to convert PostScript, PDF, and other formats. Please refer to
298 the HTML documentation or the man pages for information about the
299 capabilities provided.</para>
300
301 </sect2>
302
303</sect1>
Note: See TracBrowser for help on using the repository browser.