lua-cjson icon indicating copy to clipboard operation
lua-cjson copied to clipboard

sudo make cc -c -O3 -Wall -pedantic -DNDEBUG -I/usr/local/include -fpic -o lua_cjson.o lua_cjson.c lua_cjson.c:43:10: fatal error: lua.h: No such file or directory #include <lua.h> ^~~~~~~ compilation terminated. Makefile:90: recipe for target 'lua_cjson.o' failed make: *** [lua_cjson.o] Error 1

Open majulong opened this issue 7 years ago • 3 comments

majulong avatar Feb 28 '19 02:02 majulong

sudo make

cc -c -O3 -Wall -pedantic -DNDEBUG -I/usr/local/include -fpic -o lua_cjson.o lua_cjson.c lua_cjson.c:43:10: fatal error: lua.h: No such file or directory #include <lua.h> ^~~~~~~ compilation terminated. Makefile:90: recipe for target 'lua_cjson.o' failed make: *** [lua_cjson.o] Error 1

doesn't have lua.h in the program

majulong avatar Feb 28 '19 02:02 majulong

You will likely need a lua installation + dev package/s installed before building?

Example for Alpine Linux: https://pkgs.alpinelinux.org/contents?file=lua.h&path=&name=&branch=v3.9&arch=x86_64

(will differ by OS)

CpuID avatar Jun 04 '19 19:06 CpuID

https://www.lua.org/download.html 下载 lua 并安装 即可

qiqingzhixin avatar Nov 16 '25 13:11 qiqingzhixin