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-ftp "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs864/ghostscript-&gs-version;.tar.bz2">
|
---|
9 | <!ENTITY gs-md5sum "b13289cb2115f38f40c5e064f87e228a">
|
---|
10 | <!ENTITY gs-size "17 MB">
|
---|
11 | <!ENTITY gs-buildsize "232 MB (includes installing libgs.so and both font tarballs)">
|
---|
12 | <!ENTITY gs-time "3.2 SBU (includes building and installing libgs.so)">
|
---|
13 |
|
---|
14 | <!ENTITY gs-standard-fonts-download "ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/ghostscript-fonts-std-8.11.tar.gz">
|
---|
15 | <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
|
---|
16 | <!ENTITY gs-standard-fonts-size "3.6 MB">
|
---|
17 |
|
---|
18 | <!ENTITY gs-other-fonts-download "http://ftp.gnu.org/pub/gnu/ghostscript/gnu-gs-fonts-other-6.0.tar.gz">
|
---|
19 | <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
|
---|
20 | <!ENTITY gs-other-fonts-size "778 KB">
|
---|
21 | ]>
|
---|
22 |
|
---|
23 | <sect1 id="gs" xreflabel="GPL Ghostscript-&gs-version;">
|
---|
24 | <?dbhtml filename="gs.html"?>
|
---|
25 |
|
---|
26 | <sect1info>
|
---|
27 | <othername>$LastChangedBy$</othername>
|
---|
28 | <date>$Date$</date>
|
---|
29 | </sect1info>
|
---|
30 |
|
---|
31 | <title>GPL Ghostscript-&gs-version;</title>
|
---|
32 |
|
---|
33 | <indexterm zone="gs">
|
---|
34 | <primary sortas="a-GPL-Ghostscript">GPL Ghostscript</primary>
|
---|
35 | </indexterm>
|
---|
36 |
|
---|
37 | <sect2 role="package">
|
---|
38 | <title>Introduction to Ghostscript</title>
|
---|
39 |
|
---|
40 | <para><application>Ghostscript</application> is a versatile processor
|
---|
41 | for PostScript data with the ability to render PostScript to different
|
---|
42 | targets.</para>
|
---|
43 |
|
---|
44 | &lfs65_checked;
|
---|
45 |
|
---|
46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
47 | <itemizedlist spacing="compact">
|
---|
48 | <listitem>
|
---|
49 | <para>Download (HTTP): <ulink url="&gs-download-http;"/></para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Download (FTP): <ulink url="&gs-download-ftp;"/></para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Download MD5 sum: &gs-md5sum;</para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Download size: &gs-size;</para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>Estimated disk space required: &gs-buildsize;</para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>Estimated build time: &gs-time;</para>
|
---|
65 | </listitem>
|
---|
66 | </itemizedlist>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
69 |
|
---|
70 | <itemizedlist spacing='compact'>
|
---|
71 | <title>Standard Fonts</title>
|
---|
72 | <listitem>
|
---|
73 | <para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para>
|
---|
74 | </listitem>
|
---|
75 | <listitem>
|
---|
76 | <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
|
---|
77 | </listitem>
|
---|
78 | <listitem>
|
---|
79 | <para>Download size: &gs-standard-fonts-size;</para>
|
---|
80 | </listitem>
|
---|
81 | </itemizedlist>
|
---|
82 |
|
---|
83 | <itemizedlist spacing='compact'>
|
---|
84 | <title>Other Fonts</title>
|
---|
85 | <listitem>
|
---|
86 | <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
|
---|
87 | </listitem>
|
---|
88 | <listitem>
|
---|
89 | <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
|
---|
90 | </listitem>
|
---|
91 | <listitem>
|
---|
92 | <para>Download size: &gs-other-fonts-size;</para>
|
---|
93 | </listitem>
|
---|
94 | </itemizedlist>
|
---|
95 |
|
---|
96 | <itemizedlist spacing="compact">
|
---|
97 | <title>Patches</title>
|
---|
98 | <listitem>
|
---|
99 | <para>Required patch: <ulink
|
---|
100 | url="&patch-root;/ghostscript-&gs-version;-security_fixes-1.patch"/>
|
---|
101 | </para>
|
---|
102 | </listitem>
|
---|
103 | <listitem>
|
---|
104 | <para>Optional patch: <ulink
|
---|
105 | url="&patch-root;/ghostscript-&gs-version;-system_jasper-1.patch"/>
|
---|
106 | </para>
|
---|
107 | </listitem>
|
---|
108 | </itemizedlist>
|
---|
109 |
|
---|
110 | <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
|
---|
111 |
|
---|
112 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
113 | <para role="optional"><xref linkend="libjpeg"/>,
|
---|
114 | <xref linkend="libpng"/>,
|
---|
115 | <xref linkend="jasper"/>,
|
---|
116 | <xref linkend="gtk2"/>, and
|
---|
117 | <xref linkend="x-window-system"/></para>
|
---|
118 |
|
---|
119 | <para condition="html" role="usernotes">User Notes:
|
---|
120 | <ulink url="&blfs-wiki;/gs"/></para>
|
---|
121 |
|
---|
122 | </sect2>
|
---|
123 |
|
---|
124 | <sect2 role="installation">
|
---|
125 | <title>Installation of Ghostscript</title>
|
---|
126 |
|
---|
127 | <para>If you have <application>JasPer</application> installed on your system
|
---|
128 | and you would like to use it with <application>GPL Ghostscript</application>,
|
---|
129 | then we must first remove the local copy and apply a patch:</para>
|
---|
130 |
|
---|
131 | <screen><userinput>rm -rf jasper &&
|
---|
132 | patch -Np1 -i ../ghostscript-&gs-version;-system_jasper-1.patch
|
---|
133 | </userinput></screen>
|
---|
134 |
|
---|
135 | <para>Install <application>GPL Ghostscript</application> by running the
|
---|
136 | following commands:</para>
|
---|
137 |
|
---|
138 | <screen><userinput>patch -Np1 -i ../ghostscript-&gs-version;-security_fixes-1.patch &&
|
---|
139 | ./configure --prefix=/usr &&
|
---|
140 | make</userinput></screen>
|
---|
141 |
|
---|
142 | <para>This package does not come with a test suite.</para>
|
---|
143 |
|
---|
144 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
145 |
|
---|
146 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
147 |
|
---|
148 | <para>To install the shared library
|
---|
149 | <filename class='libraryfile'>libgs.so</filename>, run the
|
---|
150 | following additional command as an unprivileged user:</para>
|
---|
151 |
|
---|
152 | <screen><userinput>make so</userinput></screen>
|
---|
153 |
|
---|
154 | <para>And again, as the <systemitem class="username">root</systemitem>
|
---|
155 | user:</para>
|
---|
156 |
|
---|
157 | <screen role="root"><userinput>make soinstall &&
|
---|
158 | install -v -m644 base/*.h /usr/include/ghostscript &&
|
---|
159 | ln -v -s ghostscript /usr/include/ps</userinput></screen>
|
---|
160 |
|
---|
161 | <note>
|
---|
162 | <para>The shared library depends on <xref linkend="gtk2"/>. It is
|
---|
163 | only used in external programs like <xref linkend="gsview"/> and
|
---|
164 | <xref linkend="imagemagick"/>.</para>
|
---|
165 | </note>
|
---|
166 |
|
---|
167 | <para>To finish the installation, unpack all fonts you've downloaded to
|
---|
168 | <filename class="directory">/usr/share/ghostscript</filename> and ensure
|
---|
169 | the ownerships of the files are root:root. Substitute
|
---|
170 | <replaceable><font-tarball></replaceable> appropriately in
|
---|
171 | the command below for the fonts you wish to install:</para>
|
---|
172 |
|
---|
173 | <screen role="root"><userinput>tar -xvf ../<replaceable><font-tarball></replaceable> -C /usr/share/ghostscript &&
|
---|
174 | chown -v -R root:root /usr/share/ghostscript/fonts</userinput></screen>
|
---|
175 |
|
---|
176 | </sect2>
|
---|
177 |
|
---|
178 | <sect2 role="commands">
|
---|
179 | <title>Command Explanations</title>
|
---|
180 |
|
---|
181 | <para><command>install ...</command>: Some packages
|
---|
182 | (<application>ImageMagick</application> is one) need the
|
---|
183 | <application>Ghostscript</application> interface headers in place to link
|
---|
184 | to the shared library. These commands install the headers.</para>
|
---|
185 |
|
---|
186 | <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some
|
---|
187 | packages expect to find the interface headers in an alternate
|
---|
188 | location.</para>
|
---|
189 |
|
---|
190 | </sect2>
|
---|
191 |
|
---|
192 | <sect2 role="content">
|
---|
193 | <title>Contents</title>
|
---|
194 | <segmentedlist>
|
---|
195 | <segtitle>Installed Programs</segtitle>
|
---|
196 | <segtitle>Installed Library</segtitle>
|
---|
197 | <segtitle>Installed Directories</segtitle>
|
---|
198 |
|
---|
199 | <seglistitem>
|
---|
200 | <seg>bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
|
---|
201 | gsdj, gsdj500, gslj, gslp, gsnd, lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
|
---|
202 | pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
|
---|
203 | ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
|
---|
204 | wftopfa</seg>
|
---|
205 | <seg>libgs.so </seg>
|
---|
206 | <seg>/usr/include/ghostscript and /usr/share/ghostscript</seg>
|
---|
207 | </seglistitem>
|
---|
208 | </segmentedlist>
|
---|
209 |
|
---|
210 | <variablelist>
|
---|
211 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
212 | <?dbfo list-presentation="list"?>
|
---|
213 | <?dbhtml list-presentation="table"?>
|
---|
214 |
|
---|
215 | <varlistentry id="afplgs-prog-gs">
|
---|
216 | <term><command>gs</command></term>
|
---|
217 | <listitem>
|
---|
218 | <para>invokes <application>Ghostscript</application>, an interpreter
|
---|
219 | of Adobe Systems' PostScript(tm) and Portable Document Format
|
---|
220 | (PDF) languages.</para>
|
---|
221 | <indexterm zone="gs afplgs-prog-gs">
|
---|
222 | <primary sortas="b-gs">gs</primary>
|
---|
223 | </indexterm>
|
---|
224 | </listitem>
|
---|
225 | </varlistentry>
|
---|
226 |
|
---|
227 | </variablelist>
|
---|
228 |
|
---|
229 | <para><application>GPL Ghostscript</application> provides many different
|
---|
230 | scripts used to render PostScript/PDF files back and forth. Please refer
|
---|
231 | to the HTML documentation or try <command>man gs</command> for information
|
---|
232 | about the capabilities provided by the package.</para>
|
---|
233 |
|
---|
234 | </sect2>
|
---|
235 |
|
---|
236 | </sect1>
|
---|