CENTOS 下查看zlib版本:
[root@VM_0_11_centos ~]# yum -y install zlib
[root@VM_0_11_centos ~]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.5.1804 (Core)
Release: 7.5.1804
Codename: Core
[root@VM_0_11_centos ~]# find /usr -name zlib.pc
/usr/lib64/pkgconfig/zlib.pc
[root@VM_0_11_centos ~]# cat /usr/lib64/pkgconfig/zlib.pc
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib64
sharedlibdir=${libdir}
includedir=/usr/include
Name: zlib
Description: zlib compression library
Version: 1.2.7
Requires:
Libs: -L${libdir} -L${sharedlibdir} -lz
Cflags: -I${includedir}
Ubuntu下查看zlib版本:
root@ubuntu:~# apt-get install zlib1g-dev
root@ubuntu:~# find / -name zlib.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/zlib.pc
root@ubuntu:~# cat /usr/lib/x86_64-linux-gnu/pkgconfig/zlib.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib/x86_64-linux-gnu
sharedlibdir=${libdir}
includedir=${prefix}/include
Name: zlib
Description: zlib compression library
Version: 1.2.8
Requires:
Libs: -L${libdir} -L${sharedlibdir} -lz
Cflags: -I${includedir}