lua needed by `lapi.o’. make linux test

lua needed by `lapi.o’. make linux test

cd src && make linux
make[1]: Entering directory `/usr/work/lua-5.3.2/src’
make all SYSCFLAGS=”-DLUA_USE_LINUX” SYSLIBS=”-Wl,-E -ldl -lreadline”
make[2]: Entering directory `/usr/work/lua-5.3.2/src’
make[2]: *** No rule to make target `luaconf.h’, needed by `lapi.o’.  Stop.
make[2]: Leaving directory `/usr/work/lua-5.3.2/src’
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/usr/work/lua-5.3.2/src’
make: *** [linux] Error 2

the solution to this problem

解决办法很简单,进入lua安装包的/src目录下,把 luaconf.h.orig 的内容拷贝到 luaconf.h 即可

cd /use/work/lua/src
cp luaconf.h.orig luaconf.h
make linux test

发表评论

电子邮件地址不会被公开。 必填项已用*标注