CentOS6 upgrade glibc operation steps

CentOS6 upgrade glibc operation steps

background

The test environment has a CentOS 6 system, and an Android compilation environment needs to be built. However, it is found that the Android SDK requires a minimum glibc version of 2.14 . The default version of CentOS 6 is 2.12 . The glibc upgrade process is recorded. Please back up the server before upgrading. This operation is not recommended in a production environment.

Compile glibc 2.14

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

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

Next download glibc 2.14 and upgrade:

#Download the source package wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
#Unzip tar -xvf glibc-2.14.tar.gz
#Enter the source directory cd glibc-2.14
#Create a compilation directory and enter it mkdir build && cd build 
# Compile glibc
../configure --prefix=/usr/local/glibc-2.14
make && make install

Modify soft link

# First delete the original soft link rm -rf /lib64/libc.so.6
#Create a new soft link ln -s /usr/local/glibc-2.14/lib/libc-2.14.so /lib64/libc.so.6
#If the system command is not available, execute:
LD_PRELOAD=/usr/local/glibc-2.14/lib/libc-2.14.so ln -s /usr/local/glibc-2.14/lib/libc-2.14.so /lib64/libc.so.6
#If the update fails, perform a restore:
LD_PRELOAD=/lib64/libc-2.12.so ln -s /lib64/libc-2.12.so /lib64/libc.so.6
#Solve the problem of garbled Chinese characters after upgrading cp /usr/lib/locale/locale-archive /usr/local/glibc-2.14/lib/locale/locale-archive
#Solve the problem of incorrect time zone ln -sf /etc/localtime /usr/local/glibc-2.14/etc/localtime

at last

glibc is a system-dependent library. Please make relevant backups before upgrading. Upgrading is risky. Please bear the responsibility if any error occurs during upgrading.

This is the end of this article about the steps to upgrade glibc in CentOS6. For more relevant content about upgrading glibc in CentOS6, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. 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.5 glibc upgrade process introduction
  • 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

<<:  Why should css be placed in the head tag

>>:  Example of how to configure the MySQL database timeout setting

Recommend

JavaScript Snake Implementation Code

This article example shares the specific code of ...

XHTML Getting Started Tutorial: Simple Web Page Creation

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

How to use default values ​​for variables in SASS

Variables defined in SASS, the value set later wi...

Explanation of the execution priority of mySQL keywords

As shown below: from table where condition group ...

Detailed explanation of the use of DockerHub image repository

Previously, the images we used were all pulled fr...

Detailed explanation of JavaScript error capture

Table of contents 1. Basic usage and logic 2. Fea...

React implements a general skeleton screen component example

Table of contents What is a skeleton screen? Demo...

How to implement encryption and decryption of sensitive data in MySQL database

Table of contents 1. Preparation 2. MySQL encrypt...

Analysis of MySQL latency issues and data flushing strategy process

Table of contents 1. MySQL replication process 2....

SVG button example code based on CSS animation

The specific code is as follows: <a href="...

6 solutions to IDEA's inability to connect to the MySQL database

This article mainly introduces 6 solutions to the...

HTML Grammar Encyclopedia_HTML Language Grammar Encyclopedia (Must Read)

Volume Label, Property Name, Description 002 <...