Installation of gpm
Install gpm by running the following commands:
The LDFLAGS environment variable must be set before
configuring gpm.
export 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.