glfs/general/sysutils/gpm/gpm-inst.xml
Tushar Teredesai f7000b3d63 Patches reogranization Section V
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1305 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-10-04 23:18:07 +00:00

28 lines
969 B
XML

<sect2>
<title>Installation of <application><acronym>GPM</acronym></application></title>
<para>Install <application><acronym>GPM</acronym></application> by running the following commands:
</para>
<screen><userinput><command>patch -Np1 -i ../gpm-1.20.1-segfault.patch &amp;&amp;
patch -Np1 -i ../gpm-1.20.1-silent.patch &amp;&amp;
LDFLAGS="-lm" ./configure --prefix=/usr &amp;&amp;
make &amp;&amp;
make install &amp;&amp;
ldconfig -n -l /usr/lib/libgpm.so.1.19.0</command></userinput></screen>
</sect2>
<sect2>
<title>Command explanations</title>
<para><command>export LDFLAGS="-lm"</command>: The math library
must be linked with <command>gpm</command>, as ceil() is used in some cursor
scrolling logic. <envar>LDFLAGS</envar> is only needed if you optimize
<command>gpm</command> for size.</para>
<para><command>ldconfig -n -l </command>: During installation, gpm outputs a
message to run the above command to create the proper library links.</para>
</sect2>