Comparison

util/dependencies.lua @ 2160:0ef04962e112

Merge with 0.6
author Matthew Wild <mwild1@gmail.com>
date Mon, 23 Nov 2009 20:21:20 +0000
parent 2146:5c54097ef84a
parent 2158:575d5db7f14f
child 2170:2abca9cc78b1
comparison
equal deleted inserted replaced
2153:08b643dc00df 2160:0ef04962e112
32 end 32 end
33 33
34 local lxp = softreq "lxp" 34 local lxp = softreq "lxp"
35 35
36 if not lxp then 36 if not lxp then
37 missingdep("luaexpat", { ["Ubuntu 8.04 (Hardy)"] = "sudo apt-get install liblua5.1-expat0"; ["luarocks"] = "luarocks install luaexpat"; }); 37 missingdep("luaexpat", {
38 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-expat0";
39 ["luarocks"] = "luarocks install luaexpat";
40 ["Source"] = "http://www.keplerproject.org/luaexpat/";
41 });
38 fatal = true; 42 fatal = true;
39 end 43 end
40 44
41 local socket = softreq "socket" 45 local socket = softreq "socket"
42 46
43 if not socket then 47 if not socket then
44 missingdep("luasocket", { ["Ubuntu 8.04 (Hardy)"] = "sudo apt-get install liblua5.1-socket2"; ["luarocks"] = "luarocks install luasocket"; }); 48 missingdep("luasocket", {
49 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-socket2";
50 ["luarocks"] = "luarocks install luasocket";
51 ["Source"] = "http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/";
52 });
45 fatal = true; 53 fatal = true;
46 end 54 end
47 55
56 local lfs, err = softreq "lfs"
57 if not lfs then
58 missingdep("luafilesystem", {
59 ["luarocks"] = "luarocks install luafilesystem";
60 ["Debian/Ubuntu"] = "sudo apt-get install liblua5.1-luafilesystem0";
61 ["Source"] = "http://www.keplerproject.org/luafilesystem/";
62 });
63 fatal = true;
64 end
65
48 local ssl = softreq "ssl" 66 local ssl = softreq "ssl"
49 67
50 if not ssl then 68 if not ssl then
51 if config.get("*", "core", "run_without_ssl") then 69 if config.get("*", "core", "run_without_ssl") then
52 log("warn", "Running without SSL support because run_without_ssl is defined in the config"); 70 log("warn", "Running without SSL support because run_without_ssl is defined in the config");
53 else 71 else
54 missingdep("LuaSec", { ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/" }, "SSL/TLS support will not be available"); 72 missingdep("LuaSec", {
73 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu";
74 ["luarocks"] = "luarocks install luasec";
75 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/";
76 }, "SSL/TLS support will not be available");
55 end 77 end
56 end 78 end
57 79
58 local encodings, err = softreq "util.encodings" 80 local encodings, err = softreq "util.encodings"
59 if not encodings then 81 if not encodings then