[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
|
---|
| 8 | "http://downloads.ghostscript.com/public/ghostscript-&gs-version;.tar.bz2">
|
---|
[de109d93] | 9 | <!ENTITY gs-download-ftp " ">
|
---|
[019052a1] | 10 | <!ENTITY gs-md5sum "eea27befc1e85bef6d4768202f6b03a5">
|
---|
| 11 | <!ENTITY gs-size "27 MB">
|
---|
[95b8c6d] | 12 | <!ENTITY gs-buildsize
|
---|
[019052a1] | 13 | "215 MB (includes installing libgs.so and both font tarballs)">
|
---|
[95b8c6d] | 14 | <!ENTITY gs-time
|
---|
[019052a1] | 15 | "3.3 SBU (includes building and installing libgs.so)">
|
---|
[100786d] | 16 |
|
---|
[95b8c6d] | 17 | <!ENTITY gs-standard-fonts-download
|
---|
| 18 | "&sourceforge-repo;/gs-fonts/ghostscript-fonts-std-8.11.tar.gz">
|
---|
[00b6675] | 19 | <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
|
---|
[100786d] | 20 | <!ENTITY gs-standard-fonts-size "3.7 MB">
|
---|
[00b6675] | 21 |
|
---|
[95b8c6d] | 22 | <!ENTITY gs-other-fonts-download
|
---|
| 23 | "&sourceforge-repo;/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz">
|
---|
[100786d] | 24 | <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
|
---|
| 25 | <!ENTITY gs-other-fonts-size "796 KB">
|
---|
[73ddd1a0] | 26 | ]>
|
---|
| 27 |
|
---|
[a027d7d3] | 28 | <sect1 id="gs" xreflabel="ghostscript-&gs-version;">
|
---|
[ed30f09] | 29 | <?dbhtml filename="gs.html"?>
|
---|
| 30 |
|
---|
| 31 | <sect1info>
|
---|
| 32 | <othername>$LastChangedBy$</othername>
|
---|
| 33 | <date>$Date$</date>
|
---|
| 34 | </sect1info>
|
---|
| 35 |
|
---|
[a027d7d3] | 36 | <title>ghostscript-&gs-version;</title>
|
---|
[ed30f09] | 37 |
|
---|
| 38 | <indexterm zone="gs">
|
---|
[aa8ef3bc] | 39 | <primary sortas="a-GPL-Ghostscript">GPL Ghostscript</primary>
|
---|
[ed30f09] | 40 | </indexterm>
|
---|
| 41 |
|
---|
| 42 | <sect2 role="package">
|
---|
| 43 | <title>Introduction to Ghostscript</title>
|
---|
| 44 |
|
---|
| 45 | <para><application>Ghostscript</application> is a versatile processor
|
---|
| 46 | for PostScript data with the ability to render PostScript to different
|
---|
| 47 | targets.</para>
|
---|
| 48 |
|
---|
[d0323de] | 49 | &lfs73_checked;
|
---|
[aa8ef3bc] | 50 |
|
---|
[ed30f09] | 51 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 52 | <itemizedlist spacing="compact">
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download (HTTP): <ulink url="&gs-download-http;"/></para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Download (FTP): <ulink url="&gs-download-ftp;"/></para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Download MD5 sum: &gs-md5sum;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>Download size: &gs-size;</para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>Estimated disk space required: &gs-buildsize;</para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>Estimated build time: &gs-time;</para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 74 |
|
---|
[6b58d592] | 75 | <itemizedlist spacing="compact">
|
---|
[ed30f09] | 76 | <title>Standard Fonts</title>
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para>
|
---|
| 79 | </listitem>
|
---|
| 80 | <listitem>
|
---|
| 81 | <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
|
---|
| 82 | </listitem>
|
---|
| 83 | <listitem>
|
---|
| 84 | <para>Download size: &gs-standard-fonts-size;</para>
|
---|
| 85 | </listitem>
|
---|
| 86 | </itemizedlist>
|
---|
| 87 |
|
---|
[6b58d592] | 88 | <itemizedlist spacing="compact">
|
---|
[ed30f09] | 89 | <title>Other Fonts</title>
|
---|
| 90 | <listitem>
|
---|
| 91 | <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
|
---|
| 92 | </listitem>
|
---|
| 93 | <listitem>
|
---|
| 94 | <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
|
---|
| 95 | </listitem>
|
---|
| 96 | <listitem>
|
---|
| 97 | <para>Download size: &gs-other-fonts-size;</para>
|
---|
| 98 | </listitem>
|
---|
| 99 | </itemizedlist>
|
---|
| 100 |
|
---|
[b29ed97c] | 101 | <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
|
---|
[ed30f09] | 102 |
|
---|
[de109d93] | 103 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[2d37d32] | 104 | <para role="recommended">
|
---|
| 105 | <xref linkend="expat"/>,
|
---|
| 106 | <xref linkend="freetype2"/>,
|
---|
| 107 | <xref linkend="libjpeg"/>,
|
---|
[1df1b16] | 108 | <xref linkend="libpng"/>,
|
---|
| 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"/>,
|
---|
| 116 | <xref linkend="fontconfig"/>,
|
---|
| 117 | <xref linkend="gtk2"/>,
|
---|
| 118 | <xref linkend="cups"/>,
|
---|
| 119 | <xref linkend="jasper"/>,
|
---|
| 120 | <xref linkend="lcms"/>,
|
---|
| 121 | <xref linkend="libidn"/>,
|
---|
| 122 | <xref linkend="x-window-system"/> and
|
---|
| 123 | <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>
|
---|
| 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>
|
---|
| 153 | If you have installed these dependencies on your system, remove the
|
---|
[d453af5] | 154 | copies of <application>expat</application>,
|
---|
[1df1b16] | 155 | <application>freetype</application>, <application>lcms2</application>,
|
---|
[6b58d592] | 156 | <application>libjpeg</application>, <application>libpng</application>,
|
---|
| 157 | and <application>libtiff</application>:
|
---|
[2d37d32] | 158 | </para>
|
---|
[ed30f09] | 159 |
|
---|
[1df1b16] | 160 | <screen><userinput>rm -rf expat freetype lcms2 jpeg libpng tiff</userinput></screen>
|
---|
[de109d93] | 161 |
|
---|
[6b58d592] | 162 | <note>
|
---|
[2d37d32] | 163 | <para>
|
---|
| 164 | If you have a multicore computer and try to run make with multiple
|
---|
| 165 | jobs (eg, make -j4) then the build may fail due to race conditions in
|
---|
| 166 | the <application>Ghostscript</application> build system. You can work
|
---|
| 167 | around that problem by simply running make again (eg,
|
---|
[defe82d] | 168 | <command>make -j4 || make -j1</command>).
|
---|
[2d37d32] | 169 | </para>
|
---|
| 170 | </note>
|
---|
| 171 |
|
---|
| 172 | <note>
|
---|
| 173 | <para>
|
---|
| 174 | If you have installed Cups and your printer is <emphasis>not</emphasis>
|
---|
| 175 | a postscript printer you will need to add
|
---|
| 176 | <option>--with-install-cups</option> to the configure options below.
|
---|
| 177 | (This option makes Ghostscript compile and install the gstoraster filter
|
---|
| 178 | and the gstoraster.convs configuration file that allow Cups to convert a
|
---|
| 179 | PostScript file to raster.)
|
---|
| 180 | </para>
|
---|
[6b58d592] | 181 | </note>
|
---|
[de109d93] | 182 |
|
---|
[6b58d592] | 183 | <para>Compile <application>Ghostscript</application>:</para>
|
---|
[de109d93] | 184 |
|
---|
[6b58d592] | 185 | <screen><userinput>rm -rf jasper lcms zlib &&
|
---|
[4b4ce7f3] | 186 | ./configure --prefix=/usr --enable-dynamic --with-system-libtiff LIBS=-lz &&
|
---|
[038ea6ba] | 187 | make</userinput></screen>
|
---|
| 188 |
|
---|
[d453af5] | 189 | <note>
|
---|
[2d37d32] | 190 | <para>
|
---|
| 191 | The shared library depends on <xref linkend="gtk2"/>. It is only used in
|
---|
| 192 | external programs like <xref linkend="imagemagick"/>.
|
---|
| 193 | </para>
|
---|
[d453af5] | 194 | </note>
|
---|
[038ea6ba] | 195 |
|
---|
[2d37d32] | 196 | <para>
|
---|
| 197 | To compile the shared library
|
---|
| 198 | <filename class="libraryfile">libgs.so</filename>, run the following
|
---|
| 199 | additional command as an unprivileged user:
|
---|
| 200 | </para>
|
---|
[038ea6ba] | 201 |
|
---|
| 202 | <screen><userinput>make so</userinput></screen>
|
---|
[73ddd1a0] | 203 |
|
---|
[2d37d32] | 204 | <para>
|
---|
| 205 | This package does not come with a test suite. However, you may test the
|
---|
| 206 | operation of the newly built <command>gs</command> program by issuing the
|
---|
| 207 | following command (issue from an X Windows terminal):
|
---|
| 208 | </para>
|
---|
[d453af5] | 209 |
|
---|
[6b58d592] | 210 | <screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
|
---|
[d453af5] | 211 |
|
---|
[2d37d32] | 212 | <para>
|
---|
| 213 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 214 | </para>
|
---|
[038ea6ba] | 215 |
|
---|
[d453af5] | 216 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 217 |
|
---|
| 218 | <para>If you want the shared library too:</para>
|
---|
| 219 |
|
---|
| 220 | <screen role="root"><userinput>make soinstall &&
|
---|
[aa8ef3bc] | 221 | install -v -m644 base/*.h /usr/include/ghostscript &&
|
---|
| 222 | ln -v -s ghostscript /usr/include/ps</userinput></screen>
|
---|
[73ddd1a0] | 223 |
|
---|
[d453af5] | 224 | <para>Now install the documentation:</para>
|
---|
| 225 |
|
---|
[6b58d592] | 226 | <screen role="root"><userinput>ln -sfv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
|
---|
[73ddd1a0] | 227 |
|
---|
[2d37d32] | 228 | <para>
|
---|
| 229 | To finish the installation, unpack all fonts you've downloaded to
|
---|
| 230 | <filename class="directory">/usr/share/ghostscript</filename> and ensure
|
---|
| 231 | the ownerships of the files are
|
---|
| 232 | <systemitem class="username">root</systemitem>:
|
---|
| 233 | <systemitem class="groupname">root</systemitem>. Substitute
|
---|
| 234 | <replaceable><font-tarball></replaceable> appropriately in the
|
---|
| 235 | command below for the fonts you wish to install:
|
---|
| 236 | </para>
|
---|
[038ea6ba] | 237 |
|
---|
[d453af5] | 238 | <screen role="root"><userinput>tar -xvf ../<replaceable><font-tarball></replaceable> -C /usr/share/ghostscript --no-same-owner</userinput></screen>
|
---|
[ed30f09] | 239 | </sect2>
|
---|
[73ddd1a0] | 240 |
|
---|
[2ddf71a5] | 241 | <sect2 role="commands">
|
---|
| 242 | <title>Command Explanations</title>
|
---|
| 243 |
|
---|
[2d37d32] | 244 | <para>
|
---|
| 245 | <command>rm -rf jasper lcms zlib</command>: The
|
---|
| 246 | <application>Ghostscript</application> build system defaults to using its
|
---|
| 247 | own version of <ulink url="http://www.openjpeg.org/">OpenJpeg</ulink> for
|
---|
| 248 | JPEG 2000 files <!-- I can't get it to compile using a system installed
|
---|
| 249 | version of openjpeg. It seems the ghostscript version has been heavily
|
---|
[ec64d28] | 250 | modified... --> so jasper source can be removed. The default color
|
---|
[2d37d32] | 251 | management system is now <application>lcms2</application> so the
|
---|
| 252 | <application>lcms</application> source is not needed.
|
---|
| 253 | <application>Zlib</application> was installed as part of LFS.
|
---|
| 254 | </para>
|
---|
| 255 |
|
---|
| 256 | <para>
|
---|
| 257 | <option>--with-system-libtiff</option>: Remove this option if you've not
|
---|
| 258 | installed <xref linkend="libtiff"/>.
|
---|
| 259 | </para>
|
---|
| 260 |
|
---|
| 261 | <para>
|
---|
[ec64d28] | 262 | <parameter>LIBS=-lz</parameter>: Use the <envar>LIBS</envar> variable to
|
---|
| 263 | tell the linker (ld) to link against the system installed
|
---|
[2d37d32] | 264 | <application>zlib</application>.
|
---|
| 265 | </para>
|
---|
| 266 |
|
---|
| 267 | <para>
|
---|
| 268 | <command>install -v -m644 base/*.h...</command>: Some packages
|
---|
| 269 | (<application>ImageMagick</application> is one) need the
|
---|
| 270 | <application>Ghostscript</application> interface headers in place to link
|
---|
| 271 | to the shared library. These commands install the headers.
|
---|
| 272 | </para>
|
---|
| 273 |
|
---|
| 274 | <para>
|
---|
| 275 | <command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
|
---|
| 276 | expect to find the interface headers in an alternate location.
|
---|
| 277 | </para>
|
---|
| 278 |
|
---|
| 279 | <para>
|
---|
| 280 | <command>ln -sfv ../ghostscript-&gs-version;/doc ...</command>: This puts
|
---|
| 281 | a symbolic link to the documentation where it is expected to be found.
|
---|
| 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>
|
---|
| 294 | bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
|
---|
| 295 | gsc (from soinstall), gsdj, gsdj500, gslj, gslp, gsnd, gsx
|
---|
| 296 | (from soinstall), lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
|
---|
| 297 | pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
|
---|
| 298 | ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
|
---|
| 299 | wftopfa
|
---|
| 300 | </seg>
|
---|
[6b58d592] | 301 | <seg>libgs.so</seg>
|
---|
[2d37d32] | 302 | <seg>
|
---|
| 303 | /usr/include/ghostscript,
|
---|
| 304 | /usr/lib/ghostscript,
|
---|
[019052a1] | 305 | /usr/share/ghostscript, and
|
---|
[2d37d32] | 306 | /usr/share/doc/ghostscript-&gs-version;
|
---|
| 307 | </seg>
|
---|
[038ea6ba] | 308 | </seglistitem>
|
---|
| 309 | </segmentedlist>
|
---|
| 310 |
|
---|
| 311 | <variablelist>
|
---|
| 312 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 313 | <?dbfo list-presentation="list"?>
|
---|
| 314 | <?dbhtml list-presentation="table"?>
|
---|
| 315 |
|
---|
[d891148c] | 316 | <varlistentry id="gplgs-prog">
|
---|
[038ea6ba] | 317 | <term><command>gs</command></term>
|
---|
| 318 | <listitem>
|
---|
[2d37d32] | 319 | <para>
|
---|
| 320 | is an interpreter for Adobe Systems' PostScript(tm) and Portable
|
---|
| 321 | Document Format (PDF).
|
---|
| 322 | </para>
|
---|
[d891148c] | 323 | <indexterm zone="gs gplgs-prog">
|
---|
[038ea6ba] | 324 | <primary sortas="b-gs">gs</primary>
|
---|
| 325 | </indexterm>
|
---|
| 326 | </listitem>
|
---|
| 327 | </varlistentry>
|
---|
| 328 |
|
---|
[d891148c] | 329 | <varlistentry id="libgs.so">
|
---|
| 330 | <term><filename class="libraryfile">libgs.so</filename></term>
|
---|
| 331 | <listitem>
|
---|
[2d37d32] | 332 | <para>
|
---|
| 333 | provides <application>Ghostscript</application> functionality to
|
---|
| 334 | other programs, such as <application>GSView</application>,
|
---|
| 335 | <application>ImageMagick</application>, and
|
---|
| 336 | <application>libspectre</application>.
|
---|
| 337 | </para>
|
---|
[d891148c] | 338 | <indexterm zone="gs libgs.so">
|
---|
| 339 | <primary sortas="c-libgs.so">libgs.so</primary>
|
---|
| 340 | </indexterm>
|
---|
| 341 | </listitem>
|
---|
| 342 | </varlistentry>
|
---|
[038ea6ba] | 343 | </variablelist>
|
---|
| 344 |
|
---|
[2d37d32] | 345 | <para>
|
---|
| 346 | <application>GPL Ghostscript</application> provides many different
|
---|
| 347 | scripts used to convert PostScript, PDF, and other formats. Please refer to
|
---|
| 348 | the HTML documentation or the man pages for information about the
|
---|
| 349 | capabilities provided.
|
---|
| 350 | </para>
|
---|
[ed30f09] | 351 | </sect2>
|
---|
[cabb2de] | 352 | </sect1>
|
---|