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