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 Compile glibc 2.14To 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 lastglibc 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:
|
<<: Why should css be placed in the head tag
>>: Example of how to configure the MySQL database timeout setting
This article example shares the specific code of ...
The installation of mysql5.7.18zip version on Win...
Time fields are often used in database usage. Com...
Create your first web page in one minute: Let'...
Variables defined in SASS, the value set later wi...
As shown below: from table where condition group ...
Previously, the images we used were all pulled fr...
Table of contents 1. Basic usage and logic 2. Fea...
My system and software versions are as follows: S...
Table of contents What is a skeleton screen? Demo...
Table of contents 1. Preparation 2. MySQL encrypt...
Table of contents 1. MySQL replication process 2....
The specific code is as follows: <a href="...
This article mainly introduces 6 solutions to the...
Volume Label, Property Name, Description 002 <...