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-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>
|
2003-10-05 07:18:07 +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-10-05 07:18:07 +08:00
|
|
|
make install &&
|
|
|
|
ldconfig -n -l /usr/lib/libgpm.so.1.19.0</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
|
2003-10-05 07:18:07 +08:00
|
|
|
<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>
|
2003-01-22 01:50:25 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|