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

原文链接: https://www.cnblogs.com/HarveyBing/p/6001736.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    atlas

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/242881

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月13日 下午10:45
下一篇 2023年2月13日 下午10:45

相关推荐