• zlib动态库升级


     1.报错

    /lib64/libz.so.1: version `ZLIB_1.2.9' not found 
    

     2.解决方案

    升级zlib动态库

     3.解决步骤

    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
    

      

      

     
    "一劳永逸" 的话,有是有的,而 "一劳永逸" 的事却极少
  • 相关阅读:
    PHP header函数设置http报文头示例详解
    在Windows下为PHP安装redis扩展
    CMD模拟http请求
    strstr使用
    memset使用
    QT修改应用程序图标
    纪念下自学QT 第十天 终于写成了串口调试助手
    QT设置textEdit光标到末尾
    QT设置TextEdit颜色
    QT设置QToolBar带有图标和文字
  • 原文地址:https://www.cnblogs.com/panwenbin-logs/p/15660706.html
Copyright © 2020-2023  润新知