lua 5.3.5 安装/初体验
安装 官网 http://www.lua.org/start.html 参考 https://blog.csdn.net/qq_23954569/article/details/70879672 cd ~ sudo apt-get install -y libreadline7 libreadline- dev wget http: // www.lua.org/ftp/lua-5.3.5.tar.gz tar zxf lua- 5.3 . 5 . tar .gz cd lua - 5.3 . 5 sudo make linux test sudo make install 因为放在了home,所以重装之后,只需要执行最后1句就OK了 包管理luarocks 才1M cd ~ wget https: // luarocks.org/releases/luarocks-3.0.4.tar.gz tar zxpf luarocks- 3.0 . 4 . tar .gz cd luarocks - 3.0 . 4 . /configure; sudo make bootstrap sudo luarocks install luasocket 安装luasql-postgres 安装时要求本地有postgres源码 Error: Could not find header file