Installation of gpm Download the patches for gpm from . Install gpm by running the following commands: The LDFLAGS environment variable must be set before configuring gpm. patch -Np0 -i ../gpm-1.20.1-smooth-cursor.patch && patch -Np1 -i ../gpm-1.20.1-segfault.patch && patch -Np1 -i ../gpm-1.20.1-silent.patch && LDFLAGS="-lm" ./configure --prefix=/usr && make && make install Command explanations export LDFLAGS="-lm": The math library must be linked with gpm, as ceil() is used in some cursor scrolling logic. LDFLAGS is only needed if you optimize gpm for size.