test.lp needs a doc directory in the same directory as it is. Just make an empty one.
-- Fabio Mascarenhas On Thu, Dec 9, 2010 at 12:36 AM, McClure, Timothy J UTCFS <tim.mccl...@fs.utc.com> wrote: > I am making progress and it seems I have everything installed. I copied all > the cgilua examples to my cgi-bin directory and executed test.lp. I got the > out listed below. Should test.lp work out of box. What is the best way for > me to test cgilua? > > > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > > <head> > > <title>CGILua Test</title> > > <link rel="stylesheet" href="css/doc.css" type="text/css"/> > > <meta http-equiv="Content-Type" > content="text/html; charset=UTF-8"/> > > > > </head> > > > > <body> > > > > <div id="container"> > > > > <div id="product"> > > <div id="product_logo"><a > href="http://www.keplerproject.org"> > > <img src="img/keplerproject.gif" > alt="Kepler Project logo" /></a> > > </div> > > <div > id="product_name"><big><strong></strong></big></div> > > <div id="product_description">CGILua > simple tests</div> > > </div> <!-- id="product" --> > > > > <div id="main"> > > > > <div id="navigation"> > > <html><head><title>CGILua Error</title></head><body>test.lp:34: cannot open > doc: No such file or directory<br> > > stack traceback:<br> > > /usr/local/share/lua/5.1//cgilua.lua:161: in function > </usr/local/share/lua/5.1//cgilua.lua:160><br> > > [C]: in function 'dir'<br> > > test.lp:34: in function 'prog'<br> > > /usr/local/share/lua/5.1//cgilua/lp.lua:132: in function > 'include'<br> > > /usr/local/share/lua/5.1//cgilua.lua:282: in function > </usr/local/share/lua/5.1//cgilua.lua:279><br> > > > > (tail call): ?<br> > > (tail call): ?<br> > > [C]: in function 'xpcall'<br> > > /usr/local/share/lua/5.1//cgilua.lua:169: in function > 'pcall'<br> > > /usr/local/share/lua/5.1//cgilua.lua:630: in function 'main'<br> > > /usr/local/share/lua/5.1//wsapi/sapi.lua:53: in function > </usr/local/share/lua/5.1//wsapi/sapi.lua:6><br> > > (tail call): ?<br> > > (tail call): ?<br> > > [C]: in function 'xpcall'<br> > > > > /usr/local/share/lua/5.1//wsapi/common.lua:257: in function > 'run_app'<br> > > /usr/local/share/lua/5.1//wsapi/common.lua:284: in function > 'run'<br> > > /usr/local/share/lua/5.1//wsapi/cgi.lua:19: in function > 'run'<br> > > ...cal/lib/luarocks/rocks/cgilua/5.1.4-1/bin/cgilua.cgi:21: in > main chunk<br> > > [C]: ?</body></html> > > _______________________________________________ > Kepler-Project mailing list > Kepler-Project@lists.luaforge.net > http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project > http://www.keplerproject.org/ > _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/