1. 程式人生 > >lua-5.3安裝luasocket

lua-5.3安裝luasocket

安裝:

執行以下命令即可:

sudo git clone https://github.com/diegonehab/luasocket
cd luasocket
sudo make
sudo make install-both

檢驗:

[[email protected] ~]# lua
Lua 5.3.5  Copyright (C) 1994-2018 Lua.org, PUC-Rio
> require('socket')
table: 0x1a52030
> socket = require('socket')
> print(socket._VERSION)
LuaSocket 3.0-rc1