Question: how to install zlib on linux?
Answer: Downloading zlib: Run the command below, wget http://www.zlib.net/zlib-1.2.3.tar.gz.
Extracting files from the downloaded package: tar -xvzf zlib-1.2.3.tar.gz. ... 
Configuring zlib Library: ./configure --prefix=/usr/local/zlib. ... 
Compiling zlib: make. ... 
Installing zlib: