問題描述:linux
執行 make linux test 過程出現錯誤,錯誤信息以下:ui
「lua
lua.c:82:31: fatal error: readline/readline.h: No such file or directoryspa
compilation terminated.
<builtin>: recipe for target 'lua.o' failed
make[2]: *** [lua.o] Error 1
make[2]: Leaving directory '/home/jason/work/lua/lua-5.3.5/src'
Makefile:110: recipe for target 'linux' failed
make[1]: *** [linux] Error 2
make[1]: Leaving directory 'lua-5.3.5/src'
Makefile:55: recipe for target 'linux' failed
make: *** [linux] Error 2ip
」ci
解決方法:get
說明缺乏「libreadline-dev」依賴包,安裝該依賴包io
Ubuntu安裝方法: sudo apt-get update 編譯
sudo apt-get install libreadline-dev test
安裝完成後,從新執行編譯便可。