Scenario Requirements The default Centos6.5 glibc version is up to 2.12. When developing Nodejs, the packages that the project depends on often require a higher version of the glibc library support. Therefore, without upgrading the system, you need to actively update the system glibc library. Generally, when you encounter the error glibc versionTo view the system glibc library version, you can use the following command: $ strings /lib64/libc.so.6 |grep GLIBC_ glibc installation First, download glibc and get $ tar -xzvf glibc-2.14.tar.gz Get the directory $ mkdir build // Create a build folder in the glibc-2.14 directory$ cd build // Enter the build directory$ ../configure --prefix=/opt/glibc-2.14 // Configure glibc and set the current glibc-2.14 installation directory$ make && make install // Compile and install the glibc-2.14 library glibc softlinkAfter the installation is complete, create a soft link pointing to glibc-2.14 and execute the following command: $ rm -rf /lib64/libc.so.6 // Delete the previous libc.so.6 soft link first $ ln -s /opt/glibc-2.14/lib/libc-2.14.so /lib64/libc.so.6 Notice Deleting $ 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 If the above update fails, you can use the following command to restore: $ LD_PRELOAD=/lib64/libc-2.12.so ln -s /lib64/libc-2.12.so /lib64/libc.so.6 // libc-2.12.so This item is the version before the system upgrade This is the end of this article about the Centos6.5 glibc upgrade process. For more information about Centos6.5 glibc upgrade, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: CSS achieves the effect of two elements blending (sticky effect)
1. Concept 1. The difference between hot backup a...
Problem description: I bought a Mac and installed...
This article example shares the specific code of ...
MySQL deployment Currently, the company deploys M...
This article shares the specific code for Vue to ...
When installing packages on an Ubuntu server, you...
React multiple ways to get the value of the input...
Through the brief introduction in the previous tw...
REPLACE Syntax REPLACE(String,from_str,to_str) Th...
Nginx hides version number In a production enviro...
This article example shares the specific code of ...
background A colleague is working on his security...
I've been playing with the remote development...
This article shares the specific code for JavaScr...
Examples: Through the PHP background code, you ca...