栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

centos7 update glibc to 2.27

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

centos7 update glibc to 2.27

wget http://ftp.gnu.org/pub/gnu/glibc/glibc-2.27.tar.xz
tar -xvf glibc-2.27.tar.xz
cd glibc-2.27
mkdir build
cd build
../configure --prefix=/root/glibc_build --with-headers=/usr/include --with-binutils=/usr/bin --enable-obsolete-nsl
make -j10
make install
 
mkdir /lib/x86_64-linux-gnu
ln -s /opt/work/glibc-2.27/build/math/libm.so.6 /lib/x86_64-linux-gnu/libm.so.6
 
#check
strings /lib/x86_64-linux-gnu/libm.so.6 | grep GLIBC_
ldd --version

常见问题
1./usr/bin/perl scripts/test-installation.pl /tmp/glibc-2.31/build/
/usr/bin/ld: cannot find -lnss_test2

add $name ne “nss_test2”
vim glibc-2.27/scripts/test-installation.pl

next if ($build_mathvec == 0 && $name eq "mvec");
    if ($name ne "nss_ldap" && $name ne "db1"
        && $name ne "thread_db"
        && $name ne "nss_test1" && $name ne "nss_test2" && $name ne "libgcc_s") {
  1. undefined reference to ‘_nsl_default_nss@GLIBC_PRIVATE’
add --enable-obsolete-nsl
 
../configure --prefix=/root/glibc_build --with-headers=/usr/include --with-binutils=/usr/bin --enable-obsolete-nsl
 
make -j10
 
make install

3./opt/work/glibc-2.27/build/elf/ldconfig: Warning: ignoring configuration file that cannot be opened: /root/glibc_build/etc/ld.so.conf: No such file or directory

find / -name ld.so.conf
 
cp /etc/ld.so.conf /root/glibc_build/etc/
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/973234.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号