mpx / lua-cjson

Lua CJSON is a fast JSON encoding/parsing module for Lua
https://kyne.au/~mark/software/lua-cjson.php
MIT License
933 stars 478 forks source link

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 #65

Open majulong opened 5 years ago

majulong commented 5 years ago

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

      ^~~~~~~

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

CpuID commented 5 years ago

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)