linux中lua安装

#wget http://www.lua.org/ftp/lua-5.2.3.tar.gz
#tar zxvf lua-5.2.3.tar.gz  
#cd lua-5.2.3  
打开src/Makefile, 将linux改成下面
linux:
    $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline -lncurses"
#sudo yum install -y readline readline-devel ncurses ncurses-devel
#make linux 
#sudo make install

#lua 验证

相关推荐