The problem I have encountered. This error occurs when the program produced by the make in the local environment runs on the test server in linux.
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./nat-server64_hjq)
strings /lib64/libc.so.6 | grep GLIBC get result
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_PRIVATE
Personally understand that the GLIBC version in the runtime environment is lower than the compilation environment version. The
solution is as follows:
method one:
https://blog.csdn.net/lucky_greenegg/article/details/51199209
Personal understanding is equivalent to updating the version in the operating environment.
Method 2 Static compilation:
Add in Makefile
CFLAGS += -static
CPPFLAGS += -static
LDFLAGS += -static