mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-02 13:42:13 +08:00
6a2a5bcf61
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1082 af4574ff-66df-0310-9fd7-8a98e5e911e0
46 lines
1.8 KiB
XML
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 &&
|
|
make &&
|
|
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 &&
|
|
ln -s glib-1.2/gmodule.h /usr/include/gmodule.h &&
|
|
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 &&
|
|
make so &&
|
|
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>
|