Centos6.5 glibc upgrade process introduction

Centos6.5 glibc upgrade process introduction

Scenario Requirements

The default Centos6.5 glibc version is up to 2.12. When developing Nodejs, the packages that the project depends on often require a higher version of the glibc library support. Therefore, without upgrading the system, you need to actively update the system glibc library. Generally, when you encounter the error libc.so.6: version GLIBC_2.14 not found , it means that glibc needs to be upgraded.

glibc version

To view the system glibc library version, you can use the following command:

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

glibc installation

First, download glibc and get glibc-2.14.tar.gz Use the following command to decompress glibc-2.14.tar.gz :

$ tar -xzvf glibc-2.14.tar.gz

Get the directory glibc-2.14 in the current directory, execute the $cd glibc-2.14 command to enter the directory, and execute the following commands in sequence to compile and install glibc-2.14:

$ mkdir build // Create a build folder in the glibc-2.14 directory$ cd build // Enter the build directory$ ../configure --prefix=/opt/glibc-2.14 // Configure glibc and set the current glibc-2.14 installation directory$ make && make install // Compile and install the glibc-2.14 library

glibc softlink

After the installation is complete, create a soft link pointing to glibc-2.14 and execute the following command:

$ rm -rf /lib64/libc.so.6 // Delete the previous libc.so.6 soft link first $ ln -s /opt/glibc-2.14/lib/libc-2.14.so /lib64/libc.so.6

Notice

Deleting libc.so.6 may cause system commands to become unavailable. You can use the following method to solve this problem:

$ LD_PRELOAD=/opt/glibc-2.14/lib/libc-2.14.so ln -s /opt/glibc-2.14/lib/libc-2.14.so /lib64/libc.so.6

If the above update fails, you can use the following command to restore:

$ LD_PRELOAD=/lib64/libc-2.12.so ln -s /lib64/libc-2.12.so /lib64/libc.so.6 // libc-2.12.so This item is the version before the system upgrade

This is the end of this article about the Centos6.5 glibc upgrade process. For more information about Centos6.5 glibc upgrade, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

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

<<:  CSS achieves the effect of two elements blending (sticky effect)

>>:  Common tags in XHTML

Recommend

How to modify the initial password of MySQL on MAC

Problem description: I bought a Mac and installed...

JavaScript implements asynchronous submission of form data

This article example shares the specific code of ...

A problem with MySQL 5.5 deployment

MySQL deployment Currently, the company deploys M...

Vue implements horizontal scrolling of marquee style text

This article shares the specific code for Vue to ...

Detailed explanation of the update command for software (library) under Linux

When installing packages on an Ubuntu server, you...

React example of how to get the value of the input box

React multiple ways to get the value of the input...

Bootstrap 3.0 study notes grid system principle

Through the brief introduction in the previous tw...

Several practical scenarios for implementing the replace function in MySQL

REPLACE Syntax REPLACE(String,from_str,to_str) Th...

How to hide the version number in Nginx

Nginx hides version number In a production enviro...

js implements the classic minesweeper game

This article example shares the specific code of ...

Correct modification steps for Docker's default network segment

background A colleague is working on his security...

How to make a tar file of wsl through Docker

I've been playing with the remote development...

JavaScript to implement the web version of Gobang game

This article shares the specific code for JavaScr...