2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
2003-09-22 03:11:48 +08:00
|
|
|
<title>Installation of <application><acronym>gpm</acronym></application></title>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-22 03:11:48 +08:00
|
|
|
<para>Download the patches for <application><acronym>gpm</acronym></application> from <ulink url="&hfile-root;"/>.</para>
|
2003-08-01 10:44:18 +08:00
|
|
|
|
2003-09-22 03:11:48 +08:00
|
|
|
<para>Install <application><acronym>gpm</acronym></application> by running the following commands:
|
2003-09-21 09:38:00 +08:00
|
|
|
</para>
|
|
|
|
<!--
|
|
|
|
<note><para>The <envar>LDFLAGS</envar> environment variable must be set before
|
|
|
|
configuring <application>gpm</application>.</para></note> -->
|
2003-01-22 01:50:25 +08:00
|
|
|
|
2003-09-21 09:38:00 +08:00
|
|
|
<screen><userinput><command>patch -Np0 -i ../gpm-1.20.1-smooth-cursor.patch &&
|
2003-08-01 10:44:18 +08:00
|
|
|
patch -Np1 -i ../gpm-1.20.1-segfault.patch &&
|
|
|
|
patch -Np1 -i ../gpm-1.20.1-silent.patch &&
|
|
|
|
LDFLAGS="-lm" ./configure --prefix=/usr &&
|
2002-07-08 04:28:42 +08:00
|
|
|
make &&
|
2003-09-21 09:38:00 +08:00
|
|
|
make install</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
</sect2>
|
|
|
|
|
2003-01-22 01:50:25 +08:00
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
2003-09-21 09:38:00 +08:00
|
|
|
<para><command>export LDFLAGS="-lm"</command> : The math library
|
2003-01-22 01:50:25 +08:00
|
|
|
must be linked with gpm, as ceil() is used in some cursor scrolling
|
2003-09-21 09:38:00 +08:00
|
|
|
logic. <envar>LDFLAGS</envar> is only needed if you optimize gpm for size.
|
|
|
|
</para>
|
2003-01-22 01:50:25 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|