首先需要安装LuaRocks:
wget http://luarocks.org/releases/luarocks-2.2.1.tar.gz
tar zxpf luarocks-2.2.1.tar.gz
cd luarocks-2.2.1
./configure; sudo make bootstrap
sudo luarocks install luasocket
接着安装luasql-mysql:
luarocks install luasql-mysql
会出现以下报错:
Error: Could not find header file for MYSQL
No file mysql.h in /usr/loca