The easiest way to install dependencies is using the luarocks tool.

Rocks:
luaexpat
luasocket
luafilesystem

Non-rocks:
LuaSec for SSL connections