zoukankan      html  css  js  c++  java
  • atlas

    寻找包含 libcrypto.so.10 的安装包,运行:

    yum provides */libcrypto.so.10

    yum install openssl101e-1.0.1e-9.el5.x86_64

    /usr/local/mysql-proxy/bin/mysql-proxy: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by /usr/local/mysql-proxy/lib/libmysql-chassis.so.0)
    /usr/local/mysql-proxy/bin/mysql-proxy: /lib64/libc.so.6: version `GLIBC_2.10' not found (required by /usr/local/mysql-proxy/lib/libmysql-proxy.so.0)
    /usr/local/mysql-proxy/bin/mysql-proxy: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by /usr/local/mysql-proxy/lib/libmysql-proxy.so.0)
    error: failed to start MySQL-Proxy of test

    .查看系统glibc支持的版本:

    strings /lib64/libc.so.6 |grep GLIBC_

    GLIBC_2.2.5
    GLIBC_2.2.6
    GLIBC_2.3
    GLIBC_2.3.2
    GLIBC_2.3.3
    GLIBC_2.3.4
    GLIBC_2.4
    GLIBC_2.5
    GLIBC_PRIVATE

    rpm -qa |grep glibc 

    glibc-common-2.5-123.el5_11.3
    glibc-2.5-123.el5_11.3
    glibc-headers-2.5-123.el5_11.3
    glibc-devel-2.5-123.el5_11.3

    cat /etc/issue

    CentOS release 5.8 (Final)

    下载2.14版本ftp://gnu.mirror.iweb.com/glibc/

    ../configure --prefix=../glibc
    configure: error: expected an absolute directory name for --prefix: ../glibc
    [root@iZ25xbprw6sZ glibc-2.14.1]# ./configure --prefix=/usr/local/glibc
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for gcc... gcc
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... gcc -E
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    configure: error: you must configure in a separate build directory

    mkdir build

    cd build

    ../configure --prefix=../glibc

    checking LD_LIBRARY_PATH variable... contains current directory
    configure: error:
    *** LD_LIBRARY_PATH shouldn't contain the current directory when
    *** building glibc. Please change the environment variable
    *** and run configure again.

    echo $LD_LIBRARY_PATH

    export LD_LIBRARY_PATH=把当前目录去掉

    configure: error: assembler too old, .cfi_personality support missing

    下载2.10.1版本,编译通过

    make –j4

    make install

    export LD_LIBRARY_PATH=/usr/local/glibc/lib:$LD_LIBRARY_PATH

  • 相关阅读:
    git上传本地项目
    第十一章 持有对象
    java 闭包与回调
    类名.class 类名.this 详解
    匿名内部类
    第十章 内部类
    Java简单调用Zookeeper服务
    Linux下ZooKeeper集群安装
    Linux自动化安装JDK
    linux下初步实现Keepalived+Nginx高可用
  • 原文地址:https://www.cnblogs.com/HarveyBing/p/6001736.html
Copyright © 2011-2022 走看看