1.download
http://luabinaries.sourceforge.net/
二进制文件linux:https://sourceforge.net/projects/luabinaries/files/5.3.3/
https://sourceforge.net/projects/luabinaries/files/5.3.3/Tools%20Executables/
http://www.lua.org/download.html
Building:
curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz
tar zxf lua-5.3.5.tar.gz
cd lua-5.3.5
make linux test
make linux test
gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lua.o lua.c
lua.c:82:31: fatal error: readline/readline.h: 没有那个文件或目录
compilation terminated.
<builtin>: recipe for target 'lua.o' failed
3.
http://luajit.org/download.html
./main.lua
/usr/bin/env: "luajit": 没有那个文件或目录