1.报错
1
|
/lib64/libz.so.1: version `ZLIB_1.2.9' not found |
2.解决方案
升级zlib动态库
3.解决步骤
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
1.查看当前动态库版本 strings /lib64/libz.so.1 |grep "ZLIB*" ZLIB_1.2.0 ZLIB_1.2.0.2 ZLIB_1.2.0.8 ZLIB_1.2.2 ZLIB_1.2.2.3 ZLIB_1.2.2.4 ZLIB_1.2.3.3 ZLIB_1.2.3.4 ZLIB_1.2.3.5 ZLIB_1.2.5.1 ZLIB_1.2.5.2 发现最高版本只有1.2.5,没有1.2.9的。 2.下载对应的zlib包并编译 wget http: //www.zlib.net/fossils/zlib-1.2.9.tar.gz tar xf zlib-1.2.9.tar.gz cd zlib-1.2.9/ ./configure make && make install 3.创建新的链接 cp libz.so.1.2.9 /usr/lib64/ cd /usr/lib64/ rm -f libz.so.1 ln -s libz.so.1.2.9 libz.so.1 4.确认新版本是否存在 strings /lib64/libz.so.1 |grep "ZLIB*" ZLIB_1.2.0 ZLIB_1.2.0.2 ZLIB_1.2.0.8 ZLIB_1.2.2 ZLIB_1.2.2.3 ZLIB_1.2.2.4 ZLIB_1.2.3.3 ZLIB_1.2.3.4 ZLIB_1.2.3.5 ZLIB_1.2.5.1 ZLIB_1.2.5.2 ZLIB_1.2.7.1 ZLIB_1.2.9 ZLIB_1.2.0 ZLIB_1.2.2 ZLIB_1.2.5.2 ZLIB_1.2.3.5 ZLIB_1.2.3.3 ZLIB_1.2.2.3 ZLIB_1.2.0.8 ZLIB_1.2.7.1 ZLIB_1.2.0.2 ZLIB_1.2.9 ZLIB_1.2.5.1 ZLIB_1.2.3.4 ZLIB_1.2.2.4 |