sudo git clone https://github.com/diegonehab/luasocket cd luasocket vim src/luasocket.h
#include "/root/lua-5.3.5/src/lua.h"
#include "/root/lua-5.3.5/src/lauxlib.h"
cd .. make make install LUAV=5.3 /usr/local/lua-5.3.5/src/lua 运行require("socket") --可以正常返回则表示安装成功
|
请发表评论