lua有一个专门的模块管理工具, luarocks
在mac os x上试了一下,lua安装5.2,luarocks安装2.0.12(前几个2.0版本的luarocks有bug),
然后用luarocks install luafilesystem 成功