On Wed, Jul 14, 2010 at 2:47 PM, Thijs Koerselman <[email protected]> wrote: > On Wed, Jul 14, 2010 at 3:39 PM, Jim Whitehead II <[email protected]> wrote: >> >> Luarocks always falls back to the stock 'require' function if it is >> unable to find the file. What is the full path to where your >> wsapi/common.lua file is on your system? > > I seem to have 2: > > /Users/thijskoerselman/.luarocks/rocks/wsapi/1.1-2/lua/wsapi/common.lua > /Users/thijskoerselman/.luarocks/rocks/wsapi/1.3.4-1/lua/wsapi/common.lua
These are both under your home directory, something the Apache user isn't going to have access to. At the very least, Luarocks won't know to look in the 'user' repository, since its running under a different user. You need to install the rocks in a place where the web server user will have access to them. > >> >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] /usr/local/bin/lua: >>> /usr/local/share/lua/5.1/luarocks/require.lua:250: module >>> 'wsapi.common' not found: >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno field >>> package.preload['wsapi.common'] >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> '/usr/local/share/lua/5.1/wsapi/common.lua' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> '/usr/local/etc/luarocks/wsapi/common.lua' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> '/Users/thijskoerselman/Documents/Projects/IM3I/svn/bintje/audiomodule/luamodules/wsapi/common.lua' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> './wsapi/common.lua' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> '/usr/local/share/lua/5.1/wsapi/common.lua' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> '/usr/local/share/lua/5.1/wsapi/common/init.lua' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> '/usr/local/lib/lua/5.1/wsapi/common.lua' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> '/usr/local/lib/lua/5.1/wsapi/common/init.lua' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> './wsapi/common.so' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> '/usr/local/lib/lua/5.1/wsapi/common.so' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> '/usr/local/lib/lua/5.1/loadall.so' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file './wsapi.so' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> '/usr/local/lib/lua/5.1/wsapi.so' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \tno file >>> '/usr/local/lib/lua/5.1/loadall.so' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] stack traceback: >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \t[C]: in function >>> 'plain_require' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] >>> \t/usr/local/share/lua/5.1/luarocks/require.lua:250: in function >>> 'require' >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] >>> \t...rselman/.luarocks//rocks/wsapi/1.3.4-1/bin/wsapi.cgi:9: in main >>> chunk >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] \t[C]: ? >>> [Wed Jul 14 14:05:06 2010] [error] [client ::1] Premature end of >>> script headers: hello.lua > > _______________________________________________ > Kepler-Project mailing list > [email protected] > http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project > http://www.keplerproject.org/ > _______________________________________________ Kepler-Project mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/
