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

Discussion on Web Imitation and Plagiarism

A few months after entering the industry in 2005, ...

JS Easy to understand Function and Constructor

Table of contents 1. Overview 1.1 Creating a func...

Thumbnail hover effect implemented with CSS3

Achieve resultsImplementation Code html <heade...

About the correct way to convert time in js when importing excel

Table of contents 1. Basics 2. Problem Descriptio...

CentOS 6.5 i386 installation MySQL 5.7.18 detailed tutorial

Most people compile MySQL and put it in the syste...

Implementing a random roll caller based on JavaScript

This article shares the specific code of JavaScri...

Play and save WeChat public account recording files (convert amr files to mp3)

Table of contents Audio transcoding tools princip...

Three common style selectors in html css

1: Tag selector The tag selector is used for all ...

Detailed explanation of how to install MariaDB 10.2.4 on CentOS7

CentOS 6 and earlier versions provide MySQL serve...

6 ways to view the port numbers occupied by Linux processes

For Linux system administrators, it is crucial to...

How to enable MySQL remote connection in Linux server

Preface Learn MySQL to reorganize previous non-MK...

Detailed explanation of Vue data proxy

Table of contents 1. What I am going to talk abou...