glfs/pst/printing/gs/espgs-inst.xml
Igor Živković 6a2a5bcf61 added gtk1 to espgs dependencies
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1082 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-09-15 20:55:42 +00:00

46 lines
1.8 KiB
XML

<sect2>
<title>Installation of <application>Ghostscript</application></title>
<para>If you want to use <acronym>OMNI</acronym> drivers extract the source archive in
Ghostscript directory:</para>
<screen><userinput><command>tar xzvf ../Omni-0.9.0.tar.gz</command></userinput></screen>
<para>Otherwise you must add <command>--without-omni</command> switch to
the configure script if you intend to install the shared
library.</para>
<para>Install <application>Ghostscript</application> by running the following commands:</para>
<screen><userinput><command>./configure --prefix=/usr &amp;&amp;
make &amp;&amp;
make install</command></userinput></screen>
<para>To install the shared library <filename>libgs.so</filename> you
will need <xref linkend="GTK"/>. Additionally, if you unpacked the
<acronym>OMNI</acronym> drivers then you have to install <xref
linkend="GLib"/> and create these symlinks:</para>
<screen><userinput><command>ln -s glib-1.2/glib.h /usr/include/glib.h &amp;&amp;
ln -s glib-1.2/gmodule.h /usr/include/gmodule.h &amp;&amp;
ln -s ../lib/glib/include/glibconfig.h /usr/include/glibconfig.h</command></userinput></screen>
<para>Proceed with the following commands:</para>
<screen><userinput><command>patch -Np1 -i ../espgs-7.07.1rc2-gdevpng.patch &amp;&amp;
make so &amp;&amp;
make soinstall</command></userinput></screen>
<para>Remove the previously created symlinks since they are not needed
any longer:</para>
<screen><userinput><command>rm /usr/include/g{lib,module,libconfig}.h</command></userinput></screen>
<note><para>The shared library is only used in external programs like
<xref linkend="gsview"/>.</para></note>
<para>To finish the installation, unpack all fonts you've loaded to
<filename class="directory">/usr/share/ghostscript</filename>.</para>
</sect2>