根据菜鸟教程描写,下载,解压,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