[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
|
---|
[4886a74] | 8 | "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs919/ghostscript-&gs-version;.tar.gz">
|
---|
[de109d93] | 9 | <!ENTITY gs-download-ftp " ">
|
---|
[4886a74] | 10 | <!ENTITY gs-md5sum "c9682ce6b852f9197c69905a43928907">
|
---|
| 11 | <!ENTITY gs-size "32 MB">
|
---|
| 12 | <!ENTITY gs-buildsize "156 MB (with fonts and libgs.so)">
|
---|
| 13 | <!ENTITY gs-time "2.6 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
|
---|
[933ceec] | 45 | targets. It used to be part of the cups printing stack, but is no longer
|
---|
| 46 | used for that.</para>
|
---|
[ed30f09] | 47 |
|
---|
[c480c33] | 48 | &lfs7a_checked;
|
---|
[aa8ef3bc] | 49 |
|
---|
[ed30f09] | 50 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 51 | <itemizedlist spacing="compact">
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download (HTTP): <ulink url="&gs-download-http;"/></para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download (FTP): <ulink url="&gs-download-ftp;"/></para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Download MD5 sum: &gs-md5sum;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Download size: &gs-size;</para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>Estimated disk space required: &gs-buildsize;</para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Estimated build time: &gs-time;</para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 73 |
|
---|
[933ceec] | 74 | <para>If you wish, you can download additional fonts.</para>
|
---|
| 75 |
|
---|
[6b58d592] | 76 | <itemizedlist spacing="compact">
|
---|
[ed30f09] | 77 | <title>Standard Fonts</title>
|
---|
| 78 | <listitem>
|
---|
[01c2a351] | 79 | <para>Download (HTTP): <ulink url="&gs-standard-fonts-download;"/></para>
|
---|
[ed30f09] | 80 | </listitem>
|
---|
| 81 | <listitem>
|
---|
| 82 | <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
|
---|
| 83 | </listitem>
|
---|
| 84 | <listitem>
|
---|
| 85 | <para>Download size: &gs-standard-fonts-size;</para>
|
---|
| 86 | </listitem>
|
---|
| 87 | </itemizedlist>
|
---|
| 88 |
|
---|
[6b58d592] | 89 | <itemizedlist spacing="compact">
|
---|
[ed30f09] | 90 | <title>Other Fonts</title>
|
---|
| 91 | <listitem>
|
---|
| 92 | <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
|
---|
| 93 | </listitem>
|
---|
| 94 | <listitem>
|
---|
| 95 | <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
|
---|
| 96 | </listitem>
|
---|
| 97 | <listitem>
|
---|
| 98 | <para>Download size: &gs-other-fonts-size;</para>
|
---|
| 99 | </listitem>
|
---|
| 100 | </itemizedlist>
|
---|
| 101 |
|
---|
[b29ed97c] | 102 | <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
|
---|
[ed30f09] | 103 |
|
---|
[de109d93] | 104 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[2d37d32] | 105 | <para role="recommended">
|
---|
| 106 | <xref linkend="freetype2"/>,
|
---|
| 107 | <xref linkend="libjpeg"/>,
|
---|
[933ceec] | 108 | <xref linkend="libpng"/>,
|
---|
[1df1b16] | 109 | <xref linkend="libtiff"/>, and
|
---|
| 110 | <xref linkend="lcms2"/>
|
---|
[2d37d32] | 111 | </para>
|
---|
[de109d93] | 112 |
|
---|
| 113 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[2d37d32] | 114 | <para role="optional">
|
---|
| 115 | <xref linkend="cairo"/>,
|
---|
[1ecdb18] | 116 | <xref linkend="cups"/>,
|
---|
[142f958b] | 117 | <xref linkend="fontconfig"/> (required, if you are installing any
|
---|
| 118 | suggested font),
|
---|
[2d37d32] | 119 | <xref linkend="gtk2"/>,
|
---|
| 120 | <xref linkend="libidn"/>,
|
---|
[1ecdb18] | 121 | <xref linkend="libpaper"/>,
|
---|
| 122 | <xref linkend="lcms"/> (not used by default, nor if lcms2 is present or found), and
|
---|
| 123 | <xref linkend="x-window-system"/>
|
---|
[2d37d32] | 124 | </para>
|
---|
| 125 |
|
---|
| 126 | <para condition="html" role="usernotes">
|
---|
| 127 | User Notes: <ulink url="&blfs-wiki;/gs"/>
|
---|
| 128 | </para>
|
---|
[ed30f09] | 129 | </sect2>
|
---|
| 130 |
|
---|
| 131 | <sect2 role="installation">
|
---|
| 132 | <title>Installation of Ghostscript</title>
|
---|
| 133 |
|
---|
[2d37d32] | 134 | <note>
|
---|
| 135 | <para>
|
---|
| 136 | The <application>Ghostscript</application> build system is not
|
---|
| 137 | user-friendly. In order to use system copies of various graphics
|
---|
| 138 | libraries, you must do it using unconventional methods.
|
---|
| 139 | </para>
|
---|
| 140 | </note>
|
---|
[100786d] | 141 |
|
---|
[2d37d32] | 142 | <para>
|
---|
| 143 | <application>GPL Ghostscript</application> includes (old) copies of
|
---|
[de109d93] | 144 | several libraries. Some of these seem to have been patched to fix known
|
---|
| 145 | vulnerabilities, but others of these copies are less-well maintained.
|
---|
| 146 | To ensure that any future fixes are applied throughout the whole system,
|
---|
[2d37d32] | 147 | it is recommended that you first install the released versions of these
|
---|
[d453af5] | 148 | libraries and then configure <application>GPL Ghostscript</application>
|
---|
[2d37d32] | 149 | to link to them.
|
---|
| 150 | </para>
|
---|
[d453af5] | 151 |
|
---|
[2d37d32] | 152 | <para>
|
---|
[4886a74] | 153 | If you have installed the recommended dependencies on your system,
|
---|
| 154 | remove the copies of
|
---|
[1df1b16] | 155 | <application>freetype</application>, <application>lcms2</application>,
|
---|
[933ceec] | 156 | <application>libjpeg</application>, and <application>libpng</application>:
|
---|
[2d37d32] | 157 | </para>
|
---|
[ed30f09] | 158 |
|
---|
[4886a74] | 159 | <screen><userinput>rm -rf freetype lcms2 jpeg libpng</userinput></screen>
|
---|
[2d37d32] | 160 |
|
---|
[6b58d592] | 161 | <para>Compile <application>Ghostscript</application>:</para>
|
---|
[de109d93] | 162 |
|
---|
[f19b432b] | 163 | <screen><userinput>rm -rf zlib &&
|
---|
[60d53ec3] | 164 |
|
---|
| 165 | ./configure --prefix=/usr \
|
---|
| 166 | --disable-compile-inits \
|
---|
| 167 | --enable-dynamic \
|
---|
| 168 | --with-system-libtiff &&
|
---|
[038ea6ba] | 169 | make</userinput></screen>
|
---|
| 170 |
|
---|
[d453af5] | 171 | <note>
|
---|
[2d37d32] | 172 | <para>
|
---|
| 173 | The shared library depends on <xref linkend="gtk2"/>. It is only used in
|
---|
[347e59c] | 174 | external programs like <xref linkend="asymptote"/> and
|
---|
| 175 | <xref linkend="imagemagick"/>.
|
---|
[2d37d32] | 176 | </para>
|
---|
[d453af5] | 177 | </note>
|
---|
[038ea6ba] | 178 |
|
---|
[2d37d32] | 179 | <para>
|
---|
| 180 | To compile the shared library
|
---|
| 181 | <filename class="libraryfile">libgs.so</filename>, run the following
|
---|
| 182 | additional command as an unprivileged user:
|
---|
| 183 | </para>
|
---|
[038ea6ba] | 184 |
|
---|
| 185 | <screen><userinput>make so</userinput></screen>
|
---|
[73ddd1a0] | 186 |
|
---|
[2d37d32] | 187 | <para>
|
---|
[a2a37c7] | 188 | This package does not come with a test suite. A set of example files
|
---|
| 189 | may be used for testing, but it is only possible after installation
|
---|
| 190 | of the package.
|
---|
[2d37d32] | 191 | </para>
|
---|
[d453af5] | 192 |
|
---|
[2d37d32] | 193 | <para>
|
---|
| 194 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 195 | </para>
|
---|
[038ea6ba] | 196 |
|
---|
[d453af5] | 197 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 198 |
|
---|
| 199 | <para>If you want the shared library too:</para>
|
---|
| 200 |
|
---|
| 201 | <screen role="root"><userinput>make soinstall &&
|
---|
[aa8ef3bc] | 202 | install -v -m644 base/*.h /usr/include/ghostscript &&
|
---|
| 203 | ln -v -s ghostscript /usr/include/ps</userinput></screen>
|
---|
[73ddd1a0] | 204 |
|
---|
[933ceec] | 205 | <para>Now make the documentation accessible from the normal place:</para>
|
---|
[d453af5] | 206 |
|
---|
[41d241e] | 207 | <screen role="root"><userinput>ln -sfvn ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
|
---|
[73ddd1a0] | 208 |
|
---|
[2d37d32] | 209 | <para>
|
---|
[933ceec] | 210 | If you have downloaded any fonts, unpack them to
|
---|
[2d37d32] | 211 | <filename class="directory">/usr/share/ghostscript</filename> and ensure
|
---|
| 212 | the ownerships of the files are
|
---|
| 213 | <systemitem class="username">root</systemitem>:
|
---|
| 214 | <systemitem class="groupname">root</systemitem>. Substitute
|
---|
| 215 | <replaceable><font-tarball></replaceable> appropriately in the
|
---|
| 216 | command below for the fonts you wish to install:
|
---|
| 217 | </para>
|
---|
[038ea6ba] | 218 |
|
---|
[142f958b] | 219 | <screen role="root"><userinput>tar -xvf ../<replaceable><font-tarball></replaceable> -C /usr/share/ghostscript --no-same-owner &&
|
---|
| 220 | fc-cache -v /usr/share/ghostscript/fonts/</userinput></screen>
|
---|
[a2a37c7] | 221 |
|
---|
| 222 | <para>
|
---|
| 223 | You can now test the rendering of various postscript and pdf files from the
|
---|
| 224 | <filename class="directory">/usr/share/ghostscript/&gs-version;/examples
|
---|
| 225 | </filename>, for example (you need an X window system display):
|
---|
| 226 | </para>
|
---|
| 227 |
|
---|
| 228 | <screen><userinput>gs -q -dBATCH /usr/share/ghostscript/&gs-version;/examples/tiger.eps</userinput></screen>
|
---|
| 229 |
|
---|
[ed30f09] | 230 | </sect2>
|
---|
[73ddd1a0] | 231 |
|
---|
[2ddf71a5] | 232 | <sect2 role="commands">
|
---|
| 233 | <title>Command Explanations</title>
|
---|
| 234 |
|
---|
[2d37d32] | 235 | <para>
|
---|
[f19b432b] | 236 | <command>rm -rf zlib </command>: <application>zlib</application>
|
---|
| 237 | was installed as part of LFS.
|
---|
[2d37d32] | 238 | </para>
|
---|
| 239 |
|
---|
| 240 | <para>
|
---|
[2bb5c32] | 241 | <parameter>--disable-compile-inits</parameter>: This option makes
|
---|
[933ceec] | 242 | <command>gs</command> and <filename>libgs.so</filename> slightly smaller.
|
---|
[2d37d32] | 243 | </para>
|
---|
| 244 |
|
---|
| 245 | <para>
|
---|
[142f958b] | 246 | <parameter>--with-system-libtiff</parameter>: Remove this option if
|
---|
| 247 | you've not installed <xref linkend="libtiff"/>.
|
---|
[2d37d32] | 248 | </para>
|
---|
| 249 |
|
---|
| 250 | <para>
|
---|
[81f0120] | 251 | <command>install -v -m644 base/*.h... </command>: Some packages
|
---|
[2d37d32] | 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>
|
---|
[81f0120] | 263 | <command>ln -sfv ../ghostscript-&gs-version;/doc ... </command>: This puts
|
---|
[2d37d32] | 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>
|
---|
[81f0120] | 283 | dvipdf, eps2eps, font2c, gs, gsbj, gsc (from soinstall), gsdj,
|
---|
| 284 | gsdj500, gslj, gslp, gsnd, gsx (from soinstall), lprsetup.sh,
|
---|
| 285 | pdf2dsc, pdf2ps, pf2afm, pfbtopfa, pphs, printafm, ps2ascii,
|
---|
| 286 | ps2epsi, ps2pdf, ps2pdf12, ps2pdf13, ps2pdf14, ps2pdfwr,
|
---|
| 287 | ps2ps, ps2ps2, unix-lpr.sh, and wftopfa
|
---|
[933ceec] | 288 | <!-- I don't see bdftops,fixmswrd.pl or pv.sh on my builds [ I don't
|
---|
| 289 | have any bdf tools from xorg ] but they are still referenced in
|
---|
| 290 | base/unixinst.mak -->
|
---|
[2d37d32] | 291 | </seg>
|
---|
[81f0120] | 292 | <seg>libgs.so and
|
---|
| 293 | /usr/lib/ghostscript/&gs-version;/X11.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>
|
---|