write "./configure" and "make && make install"
for more options write "./configure --help"

Recomended packages:
zlib http://www.zlib.net/
