source: pst/printing/gs.xml@ d0c5ea3

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d0c5ea3 was a41f643, checked in by Randy McMurchy <randy@…>, 14 years ago

Globally removed all extraneous spaces

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

  • Property mode set to 100644
File size: 11.3 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
[100786d]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">
[00b6675]17 <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
[100786d]18 <!ENTITY gs-standard-fonts-size "3.7 MB">
[00b6675]19
[100786d]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">
[73ddd1a0]23]>
24
[aa8ef3bc]25<sect1 id="gs" xreflabel="GPL Ghostscript-&gs-version;">
[ed30f09]26 <?dbhtml filename="gs.html"?>
27
28 <sect1info>
29 <othername>$LastChangedBy$</othername>
30 <date>$Date$</date>
31 </sect1info>
32
[aa8ef3bc]33 <title>GPL Ghostscript-&gs-version;</title>
[ed30f09]34
35 <indexterm zone="gs">
[aa8ef3bc]36 <primary sortas="a-GPL-Ghostscript">GPL Ghostscript</primary>
[ed30f09]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
[aa8ef3bc]46 &lfs65_checked;
47
[ed30f09]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
[aa8ef3bc]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
[b29ed97c]107 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
[ed30f09]108
109 <bridgehead renderas="sect4">Optional</bridgehead>
[d352a28]110 <para role="optional"><xref linkend="libjpeg"/>,
[ed30f09]111 <xref linkend="libpng"/>,
[100786d]112 <xref linkend="libtiff"/>,
[aa8ef3bc]113 <xref linkend="jasper"/>,
[100786d]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>
[ed30f09]121
[977061b0]122 <para condition="html" role="usernotes">User Notes:
123 <ulink url="&blfs-wiki;/gs"/></para>
124
[ed30f09]125 </sect2>
126
127 <sect2 role="installation">
128 <title>Installation of Ghostscript</title>
129
[100786d]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>
[aa8ef3bc]138
139<screen><userinput>rm -rf jasper &amp;&amp;
[1b5a1d1]140patch -Np1 -i ../ghostscript-&gs-version;-system_jasper-1.patch</userinput></screen>
[aa8ef3bc]141
[100786d]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
[a41f643]161 without doing some hacking of the sources.</para>
[100786d]162 </note>
163
[aa8ef3bc]164 <para>Install <application>GPL Ghostscript</application> by running the
[ed30f09]165 following commands:</para>
166
[100786d]167<screen><userinput>./configure --prefix=/usr --enable-dynamic &amp;&amp;
[038ea6ba]168make</userinput></screen>
169
[1b5a1d1]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>
[038ea6ba]175
176 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
177
[100786d]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>
[73ddd1a0]191
[ed30f09]192 <para>To install the shared library
193 <filename class='libraryfile'>libgs.so</filename>, run the
[e615d9b]194 following additional command as an unprivileged user:</para>
[038ea6ba]195
196<screen><userinput>make so</userinput></screen>
[73ddd1a0]197
[100786d]198 <para>And again as the <systemitem class="username">root</systemitem>
[e615d9b]199 user:</para>
[038ea6ba]200
[100786d]201<screen role="root"><userinput>make soinstall docdir=/usr/share/doc/ghostscript-&gs-version; &amp;&amp;
[aa8ef3bc]202install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
203ln -v -s ghostscript /usr/include/ps</userinput></screen>
[73ddd1a0]204
[ed30f09]205 <note>
[aa8ef3bc]206 <para>The shared library depends on <xref linkend="gtk2"/>. It is
[2ddf71a5]207 only used in external programs like <xref linkend="gsview"/> and
208 <xref linkend="imagemagick"/>.</para>
[ed30f09]209 </note>
[73ddd1a0]210
[ed30f09]211 <para>To finish the installation, unpack all fonts you've downloaded to
[038ea6ba]212 <filename class="directory">/usr/share/ghostscript</filename> and ensure
[100786d]213 the ownerships of the files are
214 <systemitem class="username">root</systemitem>:<systemitem
215 class="groupname">root</systemitem>. Substitute
[977061b0]216 <replaceable>&lt;font-tarball&gt;</replaceable> appropriately in
[038ea6ba]217 the command below for the fonts you wish to install:</para>
218
[100786d]219<screen role="root"><userinput>tar -xvf ../<replaceable>&lt;font-tarball&gt;</replaceable> \
220 -C /usr/share/ghostscript --no-same-user</userinput></screen>
[73ddd1a0]221
[ed30f09]222 </sect2>
[73ddd1a0]223
[2ddf71a5]224 <sect2 role="commands">
225 <title>Command Explanations</title>
226
227 <para><command>install ...</command>: Some packages
228 (<application>ImageMagick</application> is one) need the
229 <application>Ghostscript</application> interface headers in place to link
230 to the shared library. These commands install the headers.</para>
231
[100786d]232 <!-- <para><command>ln -sv ... /usr/share/doc/ghostscript-&gs-version;</command>: This puts
233 the documentation where it is expected to be found.</para> -->
[d891148c]234
[aa8ef3bc]235 <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some
[2ddf71a5]236 packages expect to find the interface headers in an alternate
237 location.</para>
238
239 </sect2>
240
[ed30f09]241 <sect2 role="content">
242 <title>Contents</title>
[038ea6ba]243 <segmentedlist>
244 <segtitle>Installed Programs</segtitle>
245 <segtitle>Installed Library</segtitle>
246 <segtitle>Installed Directories</segtitle>
247
248 <seglistitem>
[aa8ef3bc]249 <seg>bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
[a41f643]250 gsdj, gsdj500, gslj, gslp, gsnd, lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
251 pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
[aa8ef3bc]252 ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
[038ea6ba]253 wftopfa</seg>
254 <seg>libgs.so </seg>
[100786d]255 <seg>/usr/include/ghostscript, /usr/lib/ghostscript, /usr/share/ghostscript,
256 and /usr/share/doc/ghostscript-&gs-version;</seg>
[038ea6ba]257 </seglistitem>
258 </segmentedlist>
259
260 <variablelist>
261 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
262 <?dbfo list-presentation="list"?>
263 <?dbhtml list-presentation="table"?>
264
[d891148c]265 <varlistentry id="gplgs-prog">
[038ea6ba]266 <term><command>gs</command></term>
267 <listitem>
[d891148c]268 <para>is an interpreter for Adobe Systems' PostScript(tm) and Portable Document Format
269 (PDF).</para>
270 <indexterm zone="gs gplgs-prog">
[038ea6ba]271 <primary sortas="b-gs">gs</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
[d891148c]276 <varlistentry id="libgs.so">
277 <term><filename class="libraryfile">libgs.so</filename></term>
278 <listitem>
279 <para>provides <application>Ghostscript</application> functionality
280 to other programs, such as <application>GSView</application>,
281 <application>ImageMagick</application>, and
282 <application>libspectre</application>.</para>
283 <indexterm zone="gs libgs.so">
284 <primary sortas="c-libgs.so">libgs.so</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
[038ea6ba]289 </variablelist>
290
[d891148c]291 <para><application>GPL Ghostscript</application> provides many different
[a41f643]292 scripts used to convert PostScript, PDF, and other formats. Please refer to
293 the HTML documentation or the man pages for information about the
[d891148c]294 capabilities provided.</para>
[73ddd1a0]295
[ed30f09]296 </sect2>
[cabb2de]297
298</sect1>
Note: See TracBrowser for help on using the repository browser.