首先去zlib官网下载zlib 地址:http://www.zlib.net/目前最新版本为1.2.8
打开终端运行
$ tar zxvf zlib-1.2.8.tar.gz
$ ./configure -h
usage:
configure [--const] [--zprefix] [--prefix=PREFIX] [--eprefix=EXPREFIX]
[--static] [--64] [--libdir=LIBDIR] [--sharedlibdir=LIBDIR]
[--includedir=INCLUDEDIR] [--archs="-arch i386 -arch x86_64"]
养成好习惯