安装LuaSQL
安装Lua
yum install readline-devel
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
make linux test
make install
安装LuaRocks
yum install git
wget https://luarocks.github.io/luarocks/releases/luarocks-3.9.0.tar.gz
tar zxpf luarocks-3.9.0.tar.gz
cd luarocks-3.9.0
./configure
sudo make bootstrap
yum install postgresql-devel
luarocks install luasql-postgres