3
votes

I am trying to install luasocket, but it I can't find any info how to do this. I downloaded from luaforge luasocket-2.0.2.tar.gz archive, but there is no configure file, only MVS solutions. So, how to get compiled libs?

2

2 Answers

5
votes

You can install LuaSocket via LuaRocks:

luarocks install luasocket

or directly from git:

luarocks install https://raw.githubusercontent.com/diegonehab/luasocket/master/luasocket-scm-0.rockspec
0
votes

This has already been discussed previously on SO; see for example this question and its answers.

Note that this is not the latest version of luasocket and it's not compatible with Lua 5.2 or Lua 5.3. You can get the more recent version from this repository.