How to install zlib on Ubuntu 16.04

# compile

mkdir -p "$HOME/tmp/tar_gz"
cd "$HOME/tmp/tar_gz"
if [[ ! -f "$HOME/tmp/tar_gz/zlib-1.2.11.tar.gz" ]]; then
  wget -O "$HOME/tmp/tar_gz/zlib-1.2.11.tar.gz" "https://zlib.net/zlib-1.2.11.tar.gz"
fi
tar xf "$HOME/tmp/tar_gz/zlib-1.2.11.tar.gz"
cd "$HOME/tmp/tar_gz/zlib-1.2.11"
make clean
make distclean
./configure
make

# install

sudo make install
sudo ldconfig

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.