Linux 下安装 lua

根据菜鸟教程描写,下载,解压,make linux test 即可。但有可能有下面错误:

<builtin>: recipe for target 'lua.o' failed
make[2]: *** [lua.o] Error 1
make[2]: Leaving directory '/home/xxx/lua-5.3.0/src'
Makefile:110: recipe for target 'linux' failed
make[1]: *** [linux] Error 2
make[1]: Leaving directory '/home/xxx/lua-5.3.0/src'
Makefile:55: recipe for target 'linux' failed
make: *** [linux] Error 2

缺少文件,使用下面命令即可:

sudo apt-get install libreadline-dev

在VIM中配置,转下面的大神的博客:大神博客

你可能感兴趣的:(Linux基础)