安装失败,怎么解决? #1803
Replies: 4 comments
-
gcc版本过低的原因 |
Beta Was this translation helpful? Give feedback.
-
安装指定或最新版本的GCC(必须5.0以上) |
Beta Was this translation helpful? Give feedback.
-
我先按照https://github.com/cloudwu/skynet/wiki/Build#%E7%BC%96%E8%AF%91-compiling |
Beta Was this translation helpful? Give feedback.
-
cc -std=gnu99 -O2 -Wall -Wextra -DLUA_USE_LINUX -I../../skynet-src -g -c -o lfunc.o lfunc.c
cc -std=gnu99 -O2 -Wall -Wextra -DLUA_USE_LINUX -I../../skynet-src -g -c -o lgc.o lgc.c
cc -std=gnu99 -O2 -Wall -Wextra -DLUA_USE_LINUX -I../../skynet-src -g -c llex.c
cc -std=gnu99 -O2 -Wall -Wextra -DLUA_USE_LINUX -I../../skynet-src -g -c -o lmem.o lmem.c
cc -std=gnu99 -O2 -Wall -Wextra -DLUA_USE_LINUX -I../../skynet-src -g -c -o lobject.o lobject.c
cc -std=gnu99 -O2 -Wall -Wextra -DLUA_USE_LINUX -I../../skynet-src -g -c -o lopcodes.o lopcodes.c
cc -std=gnu99 -O2 -Wall -Wextra -DLUA_USE_LINUX -I../../skynet-src -g -c lparser.c
cc -std=gnu99 -O2 -Wall -Wextra -DLUA_USE_LINUX -I../../skynet-src -g -c -o lstate.o lstate.c
cc -std=gnu99 -O2 -Wall -Wextra -DLUA_USE_LINUX -I../../skynet-src -g -c -o lstring.o lstring.c
In file included from lstring.c:23:0:
../../skynet-src/atomic.h:33:23: fatal error: stdatomic.h: No such file or directory
#include <stdatomic.h>
^
compilation terminated.
make[4]: *** [lstring.o] Error 1
make[4]: Leaving directory
/data/skynet/3rd/lua' make[3]: *** [linux-noreadline] Error 2 make[3]: Leaving directory
/data/skynet/3rd/lua'make[2]: *** [3rd/lua/liblua.a] Error 2
make[2]: Leaving directory
/data/skynet' make[1]: *** [linux] Error 2 make[1]: Leaving directory
/data/skynet'make: *** [default] Error 2
Beta Was this translation helpful? Give feedback.
All reactions