lua.c:82:31: fatal error: readline/readline.h: No such file or directory
原因:缺少libreadline-dev依赖包
解决方法,我的系统是CentOS 7.6
yum install readline-devel
再次编译,顺利通过。
[root@iZbp1319y2gcmn0mb0l7j8Z ~]# lua -v
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio