1.Error reporting
after the websocket service is installed on the server,
when viewing the log, the following error messages are found:
/lib64/libc. So. 6: version ` glibc_ 2.17’ not found (required by ./node)
It shows that the version of a plug-in in the Lib library does not exist
2.Solution
1. View the glibc version available in the system
// Use the strings command to view
strings /lib64/libc.so.6 |grep GLIBC_
// View the results as follows.
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_PRIVATE
As can be seen from the figure, there is no glibc_ Version 2.17 of glibc library, so you need to download a newer version of glibc library.
2. Download a new version of glibc library
https://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz
Or through
wget https://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz
# Unpack the tarball
tar -xvf glibc-2.17.tar.gz
3. Compile and install
# 1. Go to the glibc-2.17 directory
cd glibc-2.17
# 2. Create the build directory
mkdir build
# 3. Go into the build directory
cd build
# 4, execute . /configure
... /configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
# 5. Install
make && make install
4. View shared libraries
ls -l /lib64/libc.so.6
=====================
// You can see that the soft link has been created
lrwxrwxrwx. 1 root root 12 Jan 13 01:49 /lib64/libc.so.6 -> libc-2.17.so
5. Review the glibc version in the system again
[root@localhost ~]# strings /lib64/libc.so.6 |grep GLIBC_
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_PRIVATE
It can be found that it is the latest version
6. Check the log again and find that the original error has been solved ~
Read More:
- [Solved] websocket: the client is not using the websocket protocol: ‘upgrade’ token not found in ‘Connection’ head
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- [Solved] ERROR: ld.so: object ‘/$LIB/libonion.so‘ from /etc/ld.so.preload
- [Solved] yum Install gcc Error: Error: Package: glibc-headers-2.17-317.el7.x86_64
- Linux Execution Error “service mysqld start“error while loading shared libraries: libaio.so.1“
- Mgr [error]: library file libdmhs_exec.so not found, error: 0
- Restart and stop of nginx in Linux service
- Error in Linux running file: bash: $’\r’: command not found
- [Solved] Linux – error: cannot open Packages database in /var/lib/rpm
- Centos8 Could not restart the Network: Failed to restart network.service: Unit network.service not found
- Petalinux Failed to open PetaLinux lib: librdi_commonxillic.so: cannot open shared object file:
- [Solved] Linux Service Start Error: *.service: Main process exited, code=exited, status=203/EXEC
- ./ungrib.exe Start Error: Could not Fould libpng16.so.16 (/etc/ld.so.conf and ldconfig)
- [Solved] Linux virtual machine startup error: operating system not found
- [Solved] pxp_lib.h:19:10: fatal error: linux/pxp_device.h: No such file or directory
- How to Solve Linux Error: -bash: unzip: command not found
- Linux Ubuntu Django Error: uwsgi: error while loading shared libraries: libpcre.so.1
- Linux Install Bee and Execute Error: bash: bee: command not found
- [Solved] Linux Mongodb Error: # Error: coul-bash: connecting: command not found
- [Solved] Linux Perl Error: cannot locate cpan.pm in @inc (@inc contains:inc/usr/local/lib64/perl5/usr)