Hi Guys,

This question's mostly about Xavante, so I hope this is an appropriate
place to post it; I couldn't find a list/IRC channel/etc specific to
Xavante.

I'm trying to get Xavante going on an embedded system that's currently
running Debian.  I've used LuaRocks, essentially doing "luarocks
install xavante" and letting it fetch its dependencies.  Having done
that, I wrote a small test script that uses it to see if it worked:

#!/usr/bin/env lua

require "xavante"
require "xavante.filehandler"
require "xavante.cgiluahandler"
require "xavante.redirecthandler"

local rules = {
   {
      match = "^[^%./]*/$",
      with = xavante.redirecthandler,
      params = { "index.html" }
   },

   {
      match = ".",
      with = xavante.filehandler,
      params = { baseDir = "/home/rjek/bzr/commod-web/docroot/" }
   }
}

xavante.HTTP {
   server = { host = "*", port = 8080 },

   defaultHost = {
      rules = rules
   }
}

Unfortunately, running this complains:

lua: /usr/local/share/lua/5.1/xavante/cgiluahandler.lua:10: module 
'wsapi.xavante' not found:

So, I "luarocks install wsapi-xavante", and try again:

lua: /usr/local/share/lua/5.1/xavante/cgiluahandler.lua:12: module 
'kepler_init' not found:

I thought that Xavante was meant to be somewhat stand alone, but I 
try "luarocks install kepler" anyway.  Only this bombs out:

Error: File /usr/local/bin/setup-kepler is not tracked by LuaRocks. Cannot 
install new version.

What am I missing?
-- 
Rob Kendrick, Support Team Lead                      Simtec Electronics
Telephone: +44 (0)1772 978013                  Avondale Drive, Tarleton
Fax: +44 (0)1772 816426                     Preston, Lancs, PR4 6AX, UK
http://www.simtec.co.uk/                       mailto:r...@simtec.co.uk

_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to