[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"> -->
|
---|
[764c74e4] | 8 | <!-- FIXME use .bz2 or .xz when updating, if they are available -->
|
---|
[d453af5] | 9 | <!ENTITY gs-download-http "http://ghostscript.com/releases/ghostscript-&gs-version;.tar.bz2">
|
---|
[de109d93] | 10 | <!-- no response 2010-12-18
|
---|
| 11 | <!ENTITY gs-download-ftp "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs900/ghostscript-&gs-version;.tar.gz"> -->
|
---|
| 12 | <!ENTITY gs-download-ftp " ">
|
---|
[d453af5] | 13 | <!ENTITY gs-md5sum "9f6899e821ab6d78ab2c856f10fa3023">
|
---|
| 14 | <!ENTITY gs-size "28.5 MB">
|
---|
| 15 | <!ENTITY gs-buildsize "297 MB (includes installing libgs.so and both font tarballs)">
|
---|
| 16 | <!ENTITY gs-time "2.5 SBU (includes building and installing libgs.so)">
|
---|
[100786d] | 17 |
|
---|
| 18 | <!-- <!ENTITY gs-standard-fonts-download "ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/ghostscript-fonts-std-8.11.tar.gz"> -->
|
---|
| 19 | <!ENTITY gs-standard-fonts-download "&sourceforge-repo;/gs-fonts/ghostscript-fonts-std-8.11.tar.gz">
|
---|
[00b6675] | 20 | <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
|
---|
[100786d] | 21 | <!ENTITY gs-standard-fonts-size "3.7 MB">
|
---|
[00b6675] | 22 |
|
---|
[100786d] | 23 | <!ENTITY gs-other-fonts-download "&sourceforge-repo;/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz">
|
---|
| 24 | <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
|
---|
| 25 | <!ENTITY gs-other-fonts-size "796 KB">
|
---|
[73ddd1a0] | 26 | ]>
|
---|
| 27 |
|
---|
[aa8ef3bc] | 28 | <sect1 id="gs" xreflabel="GPL Ghostscript-&gs-version;">
|
---|
[ed30f09] | 29 | <?dbhtml filename="gs.html"?>
|
---|
| 30 |
|
---|
| 31 | <sect1info>
|
---|
| 32 | <othername>$LastChangedBy$</othername>
|
---|
| 33 | <date>$Date$</date>
|
---|
| 34 | </sect1info>
|
---|
| 35 |
|
---|
[aa8ef3bc] | 36 | <title>GPL 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 |
|
---|
[d453af5] | 49 | &lfs70_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 |
|
---|
| 75 | <itemizedlist spacing='compact'>
|
---|
| 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 |
|
---|
| 88 | <itemizedlist spacing='compact'>
|
---|
| 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>
|
---|
| 104 | <para role="optional"><xref linkend="expat"/>,
|
---|
| 105 | <xref linkend="freetype2"/>,
|
---|
| 106 | <xref linkend="jasper"/>
|
---|
| 107 | <xref linkend="libjpeg"/>,
|
---|
[ed30f09] | 108 | <xref linkend="libpng"/>,
|
---|
[de109d93] | 109 | <xref linkend="libtiff"/>, and
|
---|
| 110 | <xref linkend="lcms"/></para>
|
---|
| 111 |
|
---|
| 112 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 113 | <para role="optional">
|
---|
[100786d] | 114 | <xref linkend="cairo"/>,
|
---|
| 115 | <xref linkend="fontconfig"/>,
|
---|
| 116 | <xref linkend="gtk2"/>,
|
---|
| 117 | <xref linkend="cups"/>,
|
---|
[8070bb0c] | 118 | <xref linkend="libidn"/>,
|
---|
[de109d93] | 119 | <xref linkend="x-window-system"/>, and
|
---|
| 120 | <!-- the link for ijs source ultimately takes users back to the ghostscript site
|
---|
| 121 | <ulink url="http://www.linuxprinting.org/ijs/">IJS</ulink>, and -->
|
---|
[d453af5] | 122 | <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>.</para>
|
---|
[ed30f09] | 123 |
|
---|
[977061b0] | 124 | <para condition="html" role="usernotes">User Notes:
|
---|
| 125 | <ulink url="&blfs-wiki;/gs"/></para>
|
---|
| 126 |
|
---|
[ed30f09] | 127 | </sect2>
|
---|
| 128 |
|
---|
| 129 | <sect2 role="installation">
|
---|
| 130 | <title>Installation of Ghostscript</title>
|
---|
| 131 |
|
---|
[de109d93] | 132 | <para>Install <application>GPL Ghostscript</application> by running the
|
---|
| 133 | following commands:</para>
|
---|
| 134 |
|
---|
| 135 | <note>
|
---|
[100786d] | 136 | <para>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.</para>
|
---|
[de109d93] | 139 | </note>
|
---|
[100786d] | 140 |
|
---|
[de109d93] | 141 | <para><application>GPL Ghostscript</application> includes (old) copies of
|
---|
| 142 | several libraries. Some of these seem to have been patched to fix known
|
---|
| 143 | vulnerabilities, but others of these copies are less-well maintained.
|
---|
| 144 | To ensure that any future fixes are applied throughout the whole system,
|
---|
[d453af5] | 145 | it is recommended that you install the released versions of these
|
---|
| 146 | libraries and then configure <application>GPL Ghostscript</application>
|
---|
| 147 | to link to them.</para>
|
---|
| 148 |
|
---|
| 149 | <para>If you have installed these dependencies on your system, remove the
|
---|
| 150 | copies of <application>expat</application>,
|
---|
| 151 | <application>freetype</application>, <application>JasPer</application>,
|
---|
| 152 | <application>lcms</application>, <application>libjpeg</application>,
|
---|
| 153 | <application>libpng</application>, <application>libtiff</application>
|
---|
| 154 | and <application>zlib</application>:
|
---|
[de109d93] | 155 | </para>
|
---|
[ed30f09] | 156 |
|
---|
[d453af5] | 157 | <screen><userinput>rm -rf expat freetype jasper lcms jpeg libpng tiff zlib</userinput></screen>
|
---|
[de109d93] | 158 |
|
---|
| 159 | <para>Run the configure command:</para>
|
---|
| 160 |
|
---|
[d453af5] | 161 | <screen><userinput>./configure --prefix=/usr --enable-dynamic --with-system-libtiff</userinput></screen>
|
---|
[de109d93] | 162 |
|
---|
| 163 | <para>To ensure the build is able to use the system versions of
|
---|
| 164 | <application>expat</application>, <application>freetype</application>, and
|
---|
[d453af5] | 165 | <application>zlib</application> it is necessary to make some changes and an
|
---|
[de109d93] | 166 | addition to the <literal>Makefile</literal> before building the package:</para>
|
---|
| 167 |
|
---|
[d453af5] | 168 | <screen><userinput>sed -i '/^EXTRALIBS/s# -ldl# -lfreetype -lz#
|
---|
| 169 | /=imdi/aSHARE_EXPAT=1' Makefile &&
|
---|
[038ea6ba] | 170 | make</userinput></screen>
|
---|
| 171 |
|
---|
[d453af5] | 172 | <warning>
|
---|
| 173 | <para>If you have a multiprocessor computer and try to run make with
|
---|
| 174 | multiple jobs (eg, -j4) then the build may fail due to race conditions in
|
---|
| 175 | the <application>Ghostscript</application> build system.</para>
|
---|
| 176 | </warning>
|
---|
[1b5a1d1] | 177 |
|
---|
[d453af5] | 178 | <note>
|
---|
| 179 | <para>The shared library depends on <xref linkend="gtk2"/>. It is
|
---|
| 180 | only used in external programs like <xref linkend="imagemagick"/>.</para>
|
---|
| 181 | </note>
|
---|
[038ea6ba] | 182 |
|
---|
[d453af5] | 183 | <para>To compile the shared library
|
---|
[ed30f09] | 184 | <filename class='libraryfile'>libgs.so</filename>, run the
|
---|
[e615d9b] | 185 | following additional command as an unprivileged user:</para>
|
---|
[038ea6ba] | 186 |
|
---|
| 187 | <screen><userinput>make so</userinput></screen>
|
---|
[73ddd1a0] | 188 |
|
---|
[d453af5] | 189 | <para>This package does not come with a test suite. However, you may test
|
---|
| 190 | the operation of the newly built <command>gs</command> program by
|
---|
| 191 | issuing the following command (issue from an X Windows terminal):</para>
|
---|
| 192 |
|
---|
| 193 | <screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
|
---|
| 194 |
|
---|
| 195 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
[e615d9b] | 196 | user:</para>
|
---|
[038ea6ba] | 197 |
|
---|
[d453af5] | 198 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 199 |
|
---|
| 200 | <para>If you want the shared library too:</para>
|
---|
| 201 |
|
---|
| 202 | <screen role="root"><userinput>make soinstall &&
|
---|
[aa8ef3bc] | 203 | install -v -m644 base/*.h /usr/include/ghostscript &&
|
---|
| 204 | ln -v -s ghostscript /usr/include/ps</userinput></screen>
|
---|
[73ddd1a0] | 205 |
|
---|
[d453af5] | 206 | <para>Now install the documentation:</para>
|
---|
| 207 |
|
---|
| 208 | <screen role="root"><userinput>cp -rf doc /usr/share/ghostscript/&gs-version; &&
|
---|
| 209 | ln -sv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
|
---|
[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
|
---|
[d453af5] | 214 | <systemitem class="username">root</systemitem>:
|
---|
| 215 | <systemitem class="groupname">root</systemitem>. Substitute
|
---|
[977061b0] | 216 | <replaceable><font-tarball></replaceable> appropriately in
|
---|
[038ea6ba] | 217 | the command below for the fonts you wish to install:</para>
|
---|
| 218 |
|
---|
[d453af5] | 219 | <screen role="root"><userinput>tar -xvf ../<replaceable><font-tarball></replaceable> -C /usr/share/ghostscript --no-same-owner</userinput></screen>
|
---|
[73ddd1a0] | 220 |
|
---|
[ed30f09] | 221 | </sect2>
|
---|
[73ddd1a0] | 222 |
|
---|
[2ddf71a5] | 223 | <sect2 role="commands">
|
---|
| 224 | <title>Command Explanations</title>
|
---|
| 225 |
|
---|
[d453af5] | 226 | <!-- works fine on 32 bit systems for me - Andrew Benton
|
---|
| 227 | <para><command>with-drivers=ALL,x11</command>: This parameter adds the
|
---|
[3520d808] | 228 | <literal>x11</literal> output device to the default (<literal>ALL</literal>)
|
---|
[e974bef] | 229 | selection so that the test to render the tiger will work on 32-bit systems
|
---|
[3520d808] | 230 | (this does no harm on the <literal>x86_64</literal> architecture, although
|
---|
[d453af5] | 231 | it is not required there).</para> -->
|
---|
| 232 |
|
---|
| 233 | <!-- The build fails for me with this option with ghostscript-9.04 and
|
---|
| 234 | zlib-1.2.5 - Andrew Benton
|
---|
| 235 | <para><command>disable-compile-inits</command>: This parameter is intended
|
---|
| 236 | to avoid compiling initialization files into the executables. It is used
|
---|
| 237 | here to simplify building against the system version of
|
---|
| 238 | <application>zlib</application>.</para> -->
|
---|
| 239 |
|
---|
| 240 | <para><option>--without-jasper</option>: If you know you do not wish to
|
---|
| 241 | print any <literal>JPEG2000</literal> files, this switch (and removing the
|
---|
| 242 | <filename class="directory">jasper</filename> folder in the source) will
|
---|
| 243 | disable JPEG2000 support in <application>Ghostscript</application>.</para>
|
---|
| 244 |
|
---|
[de109d93] | 245 | <para><option>--without-jbig2dec</option>: The <literal>JBIG2</literal>
|
---|
[d453af5] | 246 | decompression code (used for some faxes) can be disabled by using this
|
---|
| 247 | switch and removing the <filename class="directory">jbig2dec/</filename>
|
---|
| 248 | source.</para>
|
---|
| 249 |
|
---|
| 250 | <para><command>install -v -m644 base/*.h...</command>: Some packages
|
---|
[2ddf71a5] | 251 | (<application>ImageMagick</application> is one) need the
|
---|
| 252 | <application>Ghostscript</application> interface headers in place to link
|
---|
| 253 | to the shared library. These commands install the headers.</para>
|
---|
| 254 |
|
---|
[db1d3ee] | 255 | <para><command>ln -sv ../ghostscript-&gs-version;/doc ...</command>:
|
---|
[d453af5] | 256 | This puts a symbolic link to the documentation where it is expected to be
|
---|
| 257 | found.</para>
|
---|
[d891148c] | 258 |
|
---|
[d453af5] | 259 | <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
|
---|
| 260 | expect to find the interface headers in an alternate location.</para>
|
---|
[2ddf71a5] | 261 |
|
---|
| 262 | </sect2>
|
---|
| 263 |
|
---|
[ed30f09] | 264 | <sect2 role="content">
|
---|
| 265 | <title>Contents</title>
|
---|
[038ea6ba] | 266 | <segmentedlist>
|
---|
| 267 | <segtitle>Installed Programs</segtitle>
|
---|
| 268 | <segtitle>Installed Library</segtitle>
|
---|
| 269 | <segtitle>Installed Directories</segtitle>
|
---|
| 270 |
|
---|
| 271 | <seglistitem>
|
---|
[aa8ef3bc] | 272 | <seg>bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
|
---|
[d453af5] | 273 | gsc (from soinstall), gsdj, gsdj500, gslj, gslp, gsnd, gsx
|
---|
| 274 | (from soinstall), lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
|
---|
[a41f643] | 275 | pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
|
---|
[aa8ef3bc] | 276 | ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
|
---|
[038ea6ba] | 277 | wftopfa</seg>
|
---|
| 278 | <seg>libgs.so </seg>
|
---|
[d453af5] | 279 | <seg>/usr/include/ghostscript, /usr/lib/ghostscript,
|
---|
| 280 | /usr/share/ghostscript,
|
---|
[100786d] | 281 | and /usr/share/doc/ghostscript-&gs-version;</seg>
|
---|
[038ea6ba] | 282 | </seglistitem>
|
---|
| 283 | </segmentedlist>
|
---|
| 284 |
|
---|
| 285 | <variablelist>
|
---|
| 286 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 287 | <?dbfo list-presentation="list"?>
|
---|
| 288 | <?dbhtml list-presentation="table"?>
|
---|
| 289 |
|
---|
[d891148c] | 290 | <varlistentry id="gplgs-prog">
|
---|
[038ea6ba] | 291 | <term><command>gs</command></term>
|
---|
| 292 | <listitem>
|
---|
[d453af5] | 293 | <para>is an interpreter for Adobe Systems' PostScript(tm) and Portable
|
---|
| 294 | Document Format (PDF).</para>
|
---|
[d891148c] | 295 | <indexterm zone="gs gplgs-prog">
|
---|
[038ea6ba] | 296 | <primary sortas="b-gs">gs</primary>
|
---|
| 297 | </indexterm>
|
---|
| 298 | </listitem>
|
---|
| 299 | </varlistentry>
|
---|
| 300 |
|
---|
[d891148c] | 301 | <varlistentry id="libgs.so">
|
---|
| 302 | <term><filename class="libraryfile">libgs.so</filename></term>
|
---|
| 303 | <listitem>
|
---|
| 304 | <para>provides <application>Ghostscript</application> functionality
|
---|
| 305 | to other programs, such as <application>GSView</application>,
|
---|
| 306 | <application>ImageMagick</application>, and
|
---|
| 307 | <application>libspectre</application>.</para>
|
---|
| 308 | <indexterm zone="gs libgs.so">
|
---|
| 309 | <primary sortas="c-libgs.so">libgs.so</primary>
|
---|
| 310 | </indexterm>
|
---|
| 311 | </listitem>
|
---|
| 312 | </varlistentry>
|
---|
| 313 |
|
---|
[038ea6ba] | 314 | </variablelist>
|
---|
| 315 |
|
---|
[d891148c] | 316 | <para><application>GPL Ghostscript</application> provides many different
|
---|
[a41f643] | 317 | scripts used to convert PostScript, PDF, and other formats. Please refer to
|
---|
| 318 | the HTML documentation or the man pages for information about the
|
---|
[d891148c] | 319 | capabilities provided.</para>
|
---|
[73ddd1a0] | 320 |
|
---|
[ed30f09] | 321 | </sect2>
|
---|
[cabb2de] | 322 |
|
---|
| 323 | </sect1>
|
---|