Lapis 설치에 약간의 문제가 있습니다. 우분투에서 일하고 있는데 luarocks를 사용하여 lapis를 가져올 때마다이 오류가 계속 발생합니다 .... 어떤 조언이 있습니까? 내 설정에서 변경할 수 있습니다 무엇구성 오류가 발생했습니다. Luarocks가 올바르게 구성되지 않았습니다.
이 오류 정정 없습니다 : "lpcap.c : 6 : 17 : 치명적인 오류 : lua.h을 : 그런 파일이나 디렉토리"
Missing dependencies for lapis:
lpeg
luasocket
lua-cjson
Using https://rocks.moonscript.org/lpeg-0.12-1.src.rock... switching to 'build' mode
gcc -O2 -fPIC -I/usr/include -c lpcap.c -o lpcap.o
lpcap.c:6:17: fatal error: lua.h: No such file or directory
#include "lua.h"
^
compilation terminated.
Error: Failed installing dependency: https://rocks.moonscript.org/lpeg-0.12-1.src.rock - Build error: Failed compiling object lpcap.o
[email protected]:~/Desktop/me/lapis-master$
어쩌면 이것이 더 낫다 신고 :
os.execute: cd '/tmp/luarocks_lpeg-0.12-1-8126/lpeg-0.12' && gcc -O2 -fPIC '-I/usr/include' '-c' 'lpcap.c' '-o' 'lpcap.o'
lpcap.c:6:17: fatal error: lua.h: No such file or directory
#include "lua.h"
누락 된 lua-dev/liblua5.1-0-dev (우분투 용) 패키지로 인해 원인이 있습니다. – Shanthakumar