Sometimes you don't have access to the fancy dynamically-loaded libraries in your runtime environment that your build environment has. In the extreme, you might have
no dynamic libraries.
To build your program so that it is a staticly-linked binary, you might try:
...before your
./configure and
make commands.
This doesn't work in nearly all circumstances, but in some simple cases it might.
This worked for me when building a
rsync for my webhost environment which lacked certain libraries (specifically, a magic version of libc).