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