基本环境,centos6.5 basic server
为了执行redis6.0.5编译好的程序,需要GLIBC_2.17
步骤
从 http://ftp.gnu.org/gnu/glibc/ 下载文件glibc-2.17.tar.gz
cd /
make soft
cd soft
tar -zxvf glibc-2.17.tar.gz
cd /usr/local/glibc-2.17
mkdir build
cd build
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
如果出现这个错误
"configure: error: no acceptable C compiler found in $PATH"
可以通过如下安装解决
yum -y install gcc-c++
make
make install
查看是否安装好
strings /lib64/libc.so.6 |grep GLIBC_
原文:https://www.cnblogs.com/cquccy/p/13958414.html