Detailed process of upgrading glibc dynamic library in centos 6.9

Detailed process of upgrading glibc dynamic library in centos 6.9

glibc is the libc library released by gnu, that is, the c runtime library. glibc is the lowest-level API in the Linux system, and almost any other runtime library will depend on glibc. In addition to encapsulating the system services provided by the Linux operating system, glibc itself also provides the implementation of many other necessary functional services. Many basic Linux commands, such as ls, mv, cp, rm, ll, ln, etc., rely on it. If the operation is wrong or the upgrade fails, the system commands will be unusable, and in serious cases, the system will be unable to re-enter after exiting. Therefore, you need to be cautious when operating and save important data before upgrading.

The purpose of writing this note is actually that when I wanted to install the Chrome browser under CentOS, an error message was reported saying that glibc (2.14-2.16) was a dependency for installing Chrome, so I planned to upgrade the glibc dynamic library on my test machine.

The text begins below:

1. First, check the system version and Glibc version

Execute the command to view the glibc version

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

The results are as follows:

From the above information, we can see that the system is CentOS 6.9. For the sake of stability, the glibc version of centos and redhat systems is still 2.12, but now it is already version 2.30. To be on the safe side, I decided to upgrade it to version 2.17.

2. Download the software and upgrade

wget http://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz 
tar -xvf glibc-2.17.tar.gz 
mkdir glibc-2.17/build
cd glibc-2.17/build 
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
make –j4
make install

illustrate:

1. The -j4 after make is to increase the compilation speed for multi-core CPUs. The number 4 is twice the number of CPU cores (the maximum value that can be set is twice the number of CPU cores)

2. The path after --prefix must be /usr. If it is changed to another path, it may fail.

After the installation is complete, the final output

The sentence in the red box basically confirms that the upgrade was successful! ! ! O(∩_∩)O Haha~

3. Testing

implement

ldd --version

Or execute

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

At this point, the version upgrade of glibc is complete. I hope that this note, which has been verified after several experiments and tests (I recompiled and installed it about 5 times, including one time when most system commands were unusable and I couldn't enter after restarting the system, but I had to use a virtual machine for testing), can help everyone. Later, I will share a solution to the problem of most commands becoming invalid due to accidental deletion or loss of the libc.so.6 file during glibc upgrade. Stay tuned!

Summarize

The above is the detailed process of upgrading the glibc dynamic library in centos 6.9 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Solution to "No such file or directory" in locale after installing glibc-2.14 in CentOS6.5
  • Centos6.5 glibc upgrade process introduction
  • CentOS6 upgrade glibc operation steps
  • Solution to the system abnormality (unable to boot) caused by upgrading glibc in Centos7

<<:  Alibaba Cloud ECS cloud server (linux system) cannot connect remotely after installing MySQL (pitfall)

>>:  Node+express to achieve paging effect

Recommend

Detailed explanation of asynchronous programming knowledge points in nodejs

Introduction Because JavaScript is single-threade...

MySQL InnoDB tablespace encryption example detailed explanation

Preface Starting from MySQL 5.7.11, MySQL support...

mysql8.0.23 linux (centos7) installation complete and detailed tutorial

Table of contents What is a relational database? ...

Step by step guide to build a calendar component with React

Table of contents Business Background Using Techn...

How to install MySQL database on Debian 9 system

Preface Seeing the title, everyone should be thin...

Summary of Css methods for clearing floats

Float is often used in web page layout, but the f...

Detailed explanation of nginx installation, deployment and usage on Linux

Table of contents 1. Download 2. Deployment 3. Ng...

Introduction to the use of MySQL official performance testing tool mysqlslap

Table of contents Introduction Instructions Actua...

Detailed explanation of viewing and setting file permissions on Mac

Preface To modify file permissions in the termina...

Detailed explanation of this pointing in JS arrow function

Arrow function is a new feature in ES6. It does n...

Solution to MySQL Chinese garbled characters problem

1. The Chinese garbled characters appear in MySQL...

mysql5.7.17.msi installation graphic tutorial

mysql-5.7.17.msi installation, follow the screens...

Deployment and Chinese translation of the docker visualization tool Portainer

#docker search #docker pull portainer 1. Download...

XHTML Getting Started Tutorial: Simple Web Page Creation

Create your first web page in one minute: Let'...