The reason is the lack of zlib library, so we need to install the dependency manually
The automatic installation scheme is provided as follows:
Zlib is a function library for data compression
1.centos
yum install zlib*
2.ubuntu
sudo apt-get install zlib*
3dynamic installation
(1) downloaded file, http://www.zlib.net/
(2) installation path and installation
./configure
make
make install
Similar Posts:
- [Solved] An error class’ ZipArchive ‘not found is reported after testing phpexcel
- zlib.h:no such file or directory
- Python Via get-pip.py Install pip Error: zipimport.ZipImportError: can‘t decompress data; zlib not availabl
- [Solved] Ruby cannot load such file — zlib, openssl(LoadError), gem No rule to make target `/include/ruby.h’
- error while loading shared libraries: libz.so.1:
- Python compiles and installs under Linux and reports an error: makefile: 1141: install
- centos ModuleNotFoundError: No module named ‘_sqlite3’
- Installing ncurses devel in Ubuntu 10.10
- [Solved] Failed to decode response: zlib_decode(): data error
- Python import random error handling method [Solved]