http://www.lua.org/download.html
http://lua-users.org/lists/lua-l/2014-08/msg00308.html
1. download and extract lua
curl -R -O http://www.lua.org/ftp/lua-5.3.0.tar.gz tar zxf lua-5.3.0.tar.gz cd lua-5.3.0
2. install readline
yum install readline-devel
3. vim src/Makefile and add -lncurses
linux:$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline -lncurses"
沒有留言:
張貼留言