问题描述:
执行 make linux test 过程出现错误,错误信息如下:
“
lua.c:82:31: fatal error: readline/readline.h: No such file or directory
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 2
”
解决方法:
说明缺少“libreadline-dev”依赖包,安装该依赖包
Ubuntu安装方法: sudo apt-get update
sudo apt-get install libreadline-dev
安装完成后,重新执行编译即可。