Solve the problem of /lib64/libc.so.6: version `GLIBC_2.15' not found

Article source: https://www.jianshu.com/p/5bb21028cde1

It’s been a long time since I wrote a short book. It’s mainly because I’m busy. Let’s share with you a big data environment problem today. It seems simple. I spent most of the night, mainly because there are few reliable articles on the Internet. Install telnet to monitor the flume port. After forcibly installing the telnet server and client, an error in the title occurred when running the port that monitors flume.

The reason is: the software is installed using advanced commands, but the machine still uses low-level dependent libraries, so this situation occurs; use ldd --version to check that the version of glibc is 2.12, and you can see that it is indeed an old dependent library .

Solution: upgrade centos6.8 upgrade glibc to version 2.15

1. Download glibc-2.15.tar.gz (any directory)

 

wget https://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gz

 

 

The rendering after downloading is as follows:

 

image.png

2. Decompression, compilation and other operations (use root to operate with full authority, the last two steps will take longer)

 

[root@hadoop101 opt]# tar -zxvf glibc-2.15.tar.gz
[root@hadoop101 opt]# cd glibc-2.15
[root@hadoop101 glibc-2.15]# mkdir build; 
[root@hadoop101 glibc-2.15]# cd build
[root@hadoop101 build]# ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
[root@hadoop101 build]# make -j 8
[root@hadoop101 build]# make  install

3. View the installation results

 

[root@hadoop101 build]# strings /lib64/libc.so.6 | grep GLIBC  (或用这个命令也可以直接查看当前版本:ldd --version)

 

 

When you check the effect, the upgrade is successful:

 

image.png

Simple, but the installation process is a bit long, hahaha, you can leave a message if you have any questions.



Author: boats cow _666
link: https: //www.jianshu.com/p/5bb21028cde1
Source: Jane books
are copyrighted by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.

Guess you like

Origin blog.csdn.net/lilifang_2011/article/details/112846031