make 错误

for i in src modules lualib; do make -C $i; done
make[1]: Entering directory '/usr/src/tsar/src'
Building LuaJIT...
make[2]: Entering directory '/usr/src/tsar/src/obj/LuaJIT-2.0.4'
==== Building LuaJIT 2.0.4 ====
make -C src
make[3]: Entering directory '/usr/src/tsar/src/obj/LuaJIT-2.0.4/src'
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:7:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:34,
from luaconf.h:12,
from lua.h:16,
from lj_arch.h:9:
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:7:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:34,
from luaconf.h:12,
from lua.h:16,
from lj_arch.h:9:
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:7:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:34,
from luaconf.h:12,
from lua.h:16,
from lj_arch.h:9:
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:7:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:34,
from luaconf.h:12,
from lua.h:16,
from lj_arch.h:9:
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:7:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:34,
from luaconf.h:12,
from lua.h:16,
from lj_arch.h:9:
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:7:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:34,
from luaconf.h:12,
from lua.h:16,
from lj_arch.h:9:
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
Makefile:233: *** Unsupported target architecture. Stop.
make[3]: Leaving directory '/usr/src/tsar/src/obj/LuaJIT-2.0.4/src'
Makefile:103: recipe for target 'src/luajit' failed
make[2]: *** [src/luajit] Error 2
make[2]: Leaving directory '/usr/src/tsar/src/obj/LuaJIT-2.0.4'
Makefile:27: recipe for target 'obj/lib/libluajit-5.1.a' failed
make[1]: *** [obj/lib/libluajit-5.1.a] Error 2
make[1]: Leaving directory '/usr/src/tsar/src'
make[1]: Entering directory '/usr/src/tsar/modules'
gcc -I../include -I../src/obj/include -Wall -fPIC --shared -g -O2 -Wno-strict-aliasing mod_apache.c -o mod_apache.so

 

解决方法: apt-get install gcc-multilib

 

 

posted @ 2019-12-10 20:04  董大轩  阅读(146)  评论(0编辑  收藏