Lua build and install

make linux后,出现问题如下

lua.c:80:31: fatal error: readline/readline.h: No such file or directory
#include <readline/readline.h>
^
compilation terminated.
make[2]: *** [lua.o] Error 1
make[2]: Leaving directory `/root/lua/lua-5.3.2/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/root/lua/lua-5.3.2/src'
make: *** [linux] Error 2

好像是差一个readline-dev

我们安装libreadline-dev,再build,成功。

最后进行安装:

sudo make install INSTALL_TOP=/usr/local/lua

原文地址:https://www.cnblogs.com/chuiyuan/p/5392463.html