An error was reported when deploying skynet on the linux server, my gcc version is 4.8
./../skynet-src/atomic.h:33:23: fatal error: stdatomic.h: No such file or directory
#include <stdatomic.h>
At this time, the version needs to be upgraded. At least 4.8 or above
sudo yum install centos-release-scl
sudo yum install devtoolset-9-gcc*
scl enable devtoolset-9 bash
During this period, press y several times to confirm the operation.
Finally gcc -v to view the installed version
gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)
22-8-26 Supplement
For Tencent cloud server, restarting will reset gcc, and you have to do it again. .