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
If someone asked you whether running EXPLAIN on a...
Steps to configure whitelist access in mysql 1. L...
mysql basic data types Overview of common MySQL d...
1. TCP Wrappers Overview TCP Wrappers "wraps...
Event Description onactivate: Fired when the objec...
MySQL supports nested transactions, but not many ...
Table of contents Overview Object rest attribute ...
Source: http://www.ruoyi.vip/ import Vue from ...
This article shares with you the Ubuntu server ve...
This article shares the specific code of jquery+A...
html , address , blockquote , body , dd , div , d...
Table of contents 1. Database bottleneck 2. Sub-l...
Table of contents Docker version Install Docker E...
This article mainly involves solutions to problem...
Problem Description MySQL is started successfully...