Linux (Ubuntu/CentOS) 安装 lua5.3
https://blog.csdn.net/wwchao2012/article/details/79589569
Linux (Ubuntu/CentOS) 安装 lua5.3
1 下载lua包并解压
wget -c http://www.lua.org/ftp/lua-5.3.0.tar.g
tar zxvf lua-5.3.0.tar.gz
2 下载libreadline相关支持
Ubuntu sudo apt-get install libreadline5
sudo apt-get install libreadline-gplv2-dev
CentOS yum install readline-devel
3 编译以及安装
cd lua-5.3.0
make linux
Ubuntu sudo make install
CentOS make install
4 测试
lua
Lua 5.3.0 Copyright (C) 1994-2015 Lua.org, PUC-Rio
>print("Hello World!")
Hello World!
按下Ctrl+D
退出。