[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 " ">
|
---|
[6b58d592] | 10 | <!ENTITY gs-md5sum "8bcef1f33ddf8a4d12b2cf8da385c191">
|
---|
| 11 | <!ENTITY gs-size "27 MB">
|
---|
[95b8c6d] | 12 | <!ENTITY gs-buildsize
|
---|
| 13 | "252 MB (includes installing libgs.so and both font tarballs)">
|
---|
| 14 | <!ENTITY gs-time
|
---|
| 15 | "2.5 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 |
|
---|
[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 |
|
---|
[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>
|
---|
| 104 | <para role="optional"><xref linkend="expat"/>,
|
---|
| 105 | <xref linkend="freetype2"/>,
|
---|
| 106 | <xref linkend="libjpeg"/>,
|
---|
[ed30f09] | 107 | <xref linkend="libpng"/>,
|
---|
[de109d93] | 108 | <xref linkend="libtiff"/>, and
|
---|
[6b58d592] | 109 | <xref linkend="lcms2"/>.</para>
|
---|
[de109d93] | 110 |
|
---|
| 111 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[6b58d592] | 112 | <para role="optional"><xref linkend="cairo"/>,
|
---|
[100786d] | 113 | <xref linkend="fontconfig"/>,
|
---|
| 114 | <xref linkend="gtk2"/>,
|
---|
| 115 | <xref linkend="cups"/>,
|
---|
[6b58d592] | 116 | <xref linkend="jasper"/>,
|
---|
| 117 | <xref linkend="lcms"/>,
|
---|
[8070bb0c] | 118 | <xref linkend="libidn"/>,
|
---|
[6b58d592] | 119 | <xref linkend="x-window-system"/>, and <ulink
|
---|
| 120 | url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>.</para>
|
---|
[ed30f09] | 121 |
|
---|
[977061b0] | 122 | <para condition="html" role="usernotes">User Notes:
|
---|
| 123 | <ulink url="&blfs-wiki;/gs"/></para>
|
---|
[ed30f09] | 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="installation">
|
---|
| 127 | <title>Installation of Ghostscript</title>
|
---|
| 128 |
|
---|
[de109d93] | 129 | <para>Install <application>GPL Ghostscript</application> by running the
|
---|
| 130 | following commands:</para>
|
---|
| 131 |
|
---|
| 132 | <note>
|
---|
[100786d] | 133 | <para>The <application>Ghostscript</application> build system is not
|
---|
| 134 | user-friendly. In order to use system copies of various graphics
|
---|
| 135 | libraries, you must do it using unconventional methods.</para>
|
---|
[de109d93] | 136 | </note>
|
---|
[100786d] | 137 |
|
---|
[de109d93] | 138 | <para><application>GPL Ghostscript</application> includes (old) copies of
|
---|
| 139 | several libraries. Some of these seem to have been patched to fix known
|
---|
| 140 | vulnerabilities, but others of these copies are less-well maintained.
|
---|
| 141 | To ensure that any future fixes are applied throughout the whole system,
|
---|
[d453af5] | 142 | it is recommended that you install the released versions of these
|
---|
| 143 | libraries and then configure <application>GPL Ghostscript</application>
|
---|
| 144 | to link to them.</para>
|
---|
| 145 |
|
---|
| 146 | <para>If you have installed these dependencies on your system, remove the
|
---|
| 147 | copies of <application>expat</application>,
|
---|
[6b58d592] | 148 | <application>freetype</application>, <application>lcms2</application>,
|
---|
| 149 | <application>libjpeg</application>, <application>libpng</application>,
|
---|
| 150 | and <application>libtiff</application>:
|
---|
[de109d93] | 151 | </para>
|
---|
[ed30f09] | 152 |
|
---|
[6b58d592] | 153 | <screen><userinput>rm -rf expat freetype jpeg lcms2 libpng tiff</userinput></screen>
|
---|
[de109d93] | 154 |
|
---|
[6b58d592] | 155 | <note>
|
---|
| 156 | <para>If you have a multicore computer and try to run make with multiple
|
---|
| 157 | jobs (eg, make -j4) then the build may fail due to race conditions in the
|
---|
| 158 | <application>Ghostscript</application> build system.</para>
|
---|
| 159 | </note>
|
---|
[de109d93] | 160 |
|
---|
[6b58d592] | 161 | <para>Compile <application>Ghostscript</application>:</para>
|
---|
[de109d93] | 162 |
|
---|
[6b58d592] | 163 | <screen><userinput>rm -rf jasper lcms zlib &&
|
---|
[4b4ce7f3] | 164 | ./configure --prefix=/usr --enable-dynamic --with-system-libtiff LIBS=-lz &&
|
---|
[038ea6ba] | 165 | make</userinput></screen>
|
---|
| 166 |
|
---|
[d453af5] | 167 | <note>
|
---|
| 168 | <para>The shared library depends on <xref linkend="gtk2"/>. It is
|
---|
| 169 | only used in external programs like <xref linkend="imagemagick"/>.</para>
|
---|
| 170 | </note>
|
---|
[038ea6ba] | 171 |
|
---|
[d453af5] | 172 | <para>To compile the shared library
|
---|
[6b58d592] | 173 | <filename class="libraryfile">libgs.so</filename>, run the
|
---|
[e615d9b] | 174 | following additional command as an unprivileged user:</para>
|
---|
[038ea6ba] | 175 |
|
---|
| 176 | <screen><userinput>make so</userinput></screen>
|
---|
[73ddd1a0] | 177 |
|
---|
[d453af5] | 178 | <para>This package does not come with a test suite. However, you may test
|
---|
| 179 | the operation of the newly built <command>gs</command> program by
|
---|
| 180 | issuing the following command (issue from an X Windows terminal):</para>
|
---|
| 181 |
|
---|
[6b58d592] | 182 | <screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
|
---|
[d453af5] | 183 |
|
---|
| 184 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
[e615d9b] | 185 | user:</para>
|
---|
[038ea6ba] | 186 |
|
---|
[d453af5] | 187 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 188 |
|
---|
| 189 | <para>If you want the shared library too:</para>
|
---|
| 190 |
|
---|
| 191 | <screen role="root"><userinput>make soinstall &&
|
---|
[aa8ef3bc] | 192 | install -v -m644 base/*.h /usr/include/ghostscript &&
|
---|
| 193 | ln -v -s ghostscript /usr/include/ps</userinput></screen>
|
---|
[73ddd1a0] | 194 |
|
---|
[d453af5] | 195 | <para>Now install the documentation:</para>
|
---|
| 196 |
|
---|
[6b58d592] | 197 | <screen role="root"><userinput>ln -sfv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
|
---|
[73ddd1a0] | 198 |
|
---|
[ed30f09] | 199 | <para>To finish the installation, unpack all fonts you've downloaded to
|
---|
[038ea6ba] | 200 | <filename class="directory">/usr/share/ghostscript</filename> and ensure
|
---|
[100786d] | 201 | the ownerships of the files are
|
---|
[d453af5] | 202 | <systemitem class="username">root</systemitem>:
|
---|
| 203 | <systemitem class="groupname">root</systemitem>. Substitute
|
---|
[977061b0] | 204 | <replaceable><font-tarball></replaceable> appropriately in
|
---|
[038ea6ba] | 205 | the command below for the fonts you wish to install:</para>
|
---|
| 206 |
|
---|
[d453af5] | 207 | <screen role="root"><userinput>tar -xvf ../<replaceable><font-tarball></replaceable> -C /usr/share/ghostscript --no-same-owner</userinput></screen>
|
---|
[ed30f09] | 208 | </sect2>
|
---|
[73ddd1a0] | 209 |
|
---|
[2ddf71a5] | 210 | <sect2 role="commands">
|
---|
| 211 | <title>Command Explanations</title>
|
---|
| 212 |
|
---|
[6b58d592] | 213 | <para><command>rm -rf jasper lcms zlib</command>: The
|
---|
| 214 | <application>Ghostscript</application> build system defaults to using its
|
---|
| 215 | own version of <ulink url="http://www.openjpeg.org/">OpenJpeg</ulink> for
|
---|
| 216 | JPEG 2000 files <!-- I can't get it to compile using a system installed
|
---|
[4b4ce7f3] | 217 | version of openjpeg. It seems the ghostscript version has been heavily
|
---|
| 218 | modified... --> so we can all remove the jasper source. The default color
|
---|
| 219 | management system is now <application>lcms2</application> so the
|
---|
| 220 | <application>lcms</application> source is not needed.
|
---|
[6b58d592] | 221 | <application>Zlib</application> was installed as part of LFS.</para>
|
---|
| 222 |
|
---|
| 223 | <para><option>--with-system-libtiff</option>: Remove this option if you've
|
---|
| 224 | not installed <xref linkend="libtiff"/>.</para>
|
---|
| 225 |
|
---|
[4b4ce7f3] | 226 | <para><parameter>LIBS=-lz</parameter>: We use the LIBS variable to tell the
|
---|
| 227 | linker (ld) to link against the system installed
|
---|
[6b58d592] | 228 | <application>zlib</application>.</para>
|
---|
[d453af5] | 229 |
|
---|
| 230 | <para><command>install -v -m644 base/*.h...</command>: Some packages
|
---|
[2ddf71a5] | 231 | (<application>ImageMagick</application> is one) need the
|
---|
| 232 | <application>Ghostscript</application> interface headers in place to link
|
---|
| 233 | to the shared library. These commands install the headers.</para>
|
---|
| 234 |
|
---|
[d453af5] | 235 | <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
|
---|
| 236 | expect to find the interface headers in an alternate location.</para>
|
---|
[2ddf71a5] | 237 |
|
---|
[6b58d592] | 238 | <para><command>ln -sfv ../ghostscript-&gs-version;/doc ...</command>:
|
---|
| 239 | This puts a symbolic link to the documentation where it is expected to be
|
---|
| 240 | found.</para>
|
---|
[2ddf71a5] | 241 | </sect2>
|
---|
| 242 |
|
---|
[ed30f09] | 243 | <sect2 role="content">
|
---|
| 244 | <title>Contents</title>
|
---|
[038ea6ba] | 245 | <segmentedlist>
|
---|
| 246 | <segtitle>Installed Programs</segtitle>
|
---|
| 247 | <segtitle>Installed Library</segtitle>
|
---|
| 248 | <segtitle>Installed Directories</segtitle>
|
---|
| 249 |
|
---|
| 250 | <seglistitem>
|
---|
[aa8ef3bc] | 251 | <seg>bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
|
---|
[d453af5] | 252 | gsc (from soinstall), gsdj, gsdj500, gslj, gslp, gsnd, gsx
|
---|
| 253 | (from soinstall), lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
|
---|
[a41f643] | 254 | pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
|
---|
[aa8ef3bc] | 255 | ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
|
---|
[038ea6ba] | 256 | wftopfa</seg>
|
---|
[6b58d592] | 257 | <seg>libgs.so</seg>
|
---|
[d453af5] | 258 | <seg>/usr/include/ghostscript, /usr/lib/ghostscript,
|
---|
[6b58d592] | 259 | /usr/share/ghostscript, and
|
---|
| 260 | /usr/share/doc/ghostscript-&gs-version;</seg>
|
---|
[038ea6ba] | 261 | </seglistitem>
|
---|
| 262 | </segmentedlist>
|
---|
| 263 |
|
---|
| 264 | <variablelist>
|
---|
| 265 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 266 | <?dbfo list-presentation="list"?>
|
---|
| 267 | <?dbhtml list-presentation="table"?>
|
---|
| 268 |
|
---|
[d891148c] | 269 | <varlistentry id="gplgs-prog">
|
---|
[038ea6ba] | 270 | <term><command>gs</command></term>
|
---|
| 271 | <listitem>
|
---|
[d453af5] | 272 | <para>is an interpreter for Adobe Systems' PostScript(tm) and Portable
|
---|
| 273 | Document Format (PDF).</para>
|
---|
[d891148c] | 274 | <indexterm zone="gs gplgs-prog">
|
---|
[038ea6ba] | 275 | <primary sortas="b-gs">gs</primary>
|
---|
| 276 | </indexterm>
|
---|
| 277 | </listitem>
|
---|
| 278 | </varlistentry>
|
---|
| 279 |
|
---|
[d891148c] | 280 | <varlistentry id="libgs.so">
|
---|
| 281 | <term><filename class="libraryfile">libgs.so</filename></term>
|
---|
| 282 | <listitem>
|
---|
| 283 | <para>provides <application>Ghostscript</application> functionality
|
---|
| 284 | to other programs, such as <application>GSView</application>,
|
---|
| 285 | <application>ImageMagick</application>, and
|
---|
| 286 | <application>libspectre</application>.</para>
|
---|
| 287 | <indexterm zone="gs libgs.so">
|
---|
| 288 | <primary sortas="c-libgs.so">libgs.so</primary>
|
---|
| 289 | </indexterm>
|
---|
| 290 | </listitem>
|
---|
| 291 | </varlistentry>
|
---|
[038ea6ba] | 292 | </variablelist>
|
---|
| 293 |
|
---|
[d891148c] | 294 | <para><application>GPL Ghostscript</application> provides many different
|
---|
[a41f643] | 295 | scripts used to convert PostScript, PDF, and other formats. Please refer to
|
---|
| 296 | the HTML documentation or the man pages for information about the
|
---|
[d891148c] | 297 | capabilities provided.</para>
|
---|
[ed30f09] | 298 | </sect2>
|
---|
[cabb2de] | 299 | </sect1>
|
---|