/usr/bin/ld: cannot find -lz

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: