Last update at :2024-06-13,Edit by888u
This time I was messing around again. I kept getting errors when debugging a certain software, and according to the solution document, I needed a higher version of the glibc version library. Here I use the CentOS6 environment, which has the highest default glibc2.12, and then try to upgrade the version library. In this article, Snail is going to record the process of upgrading the glibc2.14 version library.
One thing that needs attention here is that we should not install it directly in the real production environment easily, because system errors are more likely to occur during the upgrade process (remember to back up the backup). In short, if it is not a hassle or actual need, we should not Easily touch the underlying things.
Remarks: Operate with caution, as deleting soft links will cause the system to become inoperable. Do not operate directly in a production environment.
First, check the system glibc version library
strings /lib64/libc.so.6 |grep GLIBC_
Here we can see that the latest version in the system is 2.12, here we upgrade to 2.14.
Second, download and install glibc2.14
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gztar -xzvf glibc-2.14.tar.gzcd glibc-2.14mkdir buildcd build../configure –prefix=/opt/ glibc-2.14make && make install
The compilation and installation process takes a long time.
Third, create soft links
1. Delete the original soft link
rm -rf /lib64/libc.so.6 //Do not move after careful operation
2. Solve remediation problems
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
Because the system cannot operate any commands after deleting the soft link, we need to copy the command before operating it. (Be cautious)
3. Create a new soft link
ln -s /opt/glibc-2.14/lib/libc-2.14.so /lib64/libc.so.6
Fourth, check the current new glibc version library
This article has a reference \\"http://cnodejs.org/topic/56dc21f1502596633dc2c3dc\\". Here we can see that there is the latest glibc2.14 in the version library. However, snail is not a better solution. It seems that the process is not simple and effective, especially after deleting the soft connection, the system becomes inoperable. Is there a better way? Please give me some suggestions.
Recommended site searches: Beijing server rental, US vps server, which Hong Kong server is the fastest, Ministry of Industry and Information Technology website registration query, free php space application, wordpress host, Asian server, free virtual host, foreign free asp space, cn domain name registration,
发表评论