From b3b272859867ff184d622969f903ffcc60e7b906 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 23 Nov 2009 17:31:49 +0000 Subject: util.dependencies: Add LuaFileSystem as a hard dependency --- util/dependencies.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'util') diff --git a/util/dependencies.lua b/util/dependencies.lua index 5b07072f..a0f4e453 100644 --- a/util/dependencies.lua +++ b/util/dependencies.lua @@ -41,6 +41,15 @@ if not socket then fatal = true; end +local lfs, err = softreq "lfs" +if not lfs then + missingdep("luafilesystem", { ["luarocks"] = "luarocks install luafilesystem"; + ["Ubuntu 8.04 (Hardy)"] = "sudo apt-get install liblua5.1-luafilesystem0"; + ["Source"] = "http://www.keplerproject.org/luafilesystem/"; + }); + fatal = true; +end + local ssl = softreq "ssl" if not ssl then -- cgit v1.2.3