2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
2003-09-23 00:23:23 +08:00
|
|
|
<title>Installation of <application><acronym>GPM</acronym></application></title>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-10-03 14:27:09 +08:00
|
|
|
<para>Download the patches for <application><acronym>GPM</acronym></application> from <ulink url="&patch-root;"/>.</para>
|
2003-08-01 10:44:18 +08:00
|
|
|
|
2003-09-23 00:23:23 +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-10-03 14:27:09 +08:00
|
|
|
<screen><userinput><command>patch -Np1 -i ../gpm-1.20.1-segfault.patch &&
|
2003-08-01 10:44:18 +08:00
|
|
|
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-10-03 06:40:45 +08:00
|
|
|
<para><command>export LDFLAGS="-lm"</command>: The math library
|
2003-09-23 00:23:23 +08:00
|
|
|
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.
|
2003-09-21 09:38:00 +08:00
|
|
|
</para>
|
2003-01-22 01:50:25 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|