On Wed, Jul 14, 2010 at 9:03 PM, Thijs Koerselman
<thijskoersel...@gmail.com> wrote:
> That is a very nice script. Thanks a lot for sharing this Jim. I had
> never used a sandboxed environment before, but this is really nice! I
> got it all working now.
>
> After installing the sandbox I initially got the same error I got when
> I installed wsapi as the root user, a exec error in the Apache log:
>
> [Wed Jul 14 21:13:35 2010] [error] [client ::1] (8)Exec format error:
> exec of '/Users/thijskoerselman/Sites/luatesting/hello.lua' failed
> [Wed Jul 14 21:13:35 2010] [error] [client ::1] Premature end of
> script headers: hello.lua
>
> It turned out that with all the edits I made I introduced an error in
> hello.lua. The first line containing #! was not the first line
> anymore. I couldn't even execute hello.lua directly from the
> commandline anymore.
>
> When I fixed that it all worked. My conclusion is the only thing that
> kept wsapi from working on my system was that my rocks were installed
> on a user level rather than system wide and wsapi needs to be
> installed system wide in order for Apache to find things.
>
> I must say I have found it VERY easy to mess up a luarocks
> installation. Mainly because you can use sudo or not when you install
> a new rock, and luarocks won't warn you. Also you can get warnings
> about missing manifest files, tricking you into thinking you need to
> generate a manifest file with luarocks-admin and then messing things
> up because you add or forget to execute the command as a root user. It
> has bitten me a few times now. Maybe I should have studied the
> luarocks manual a bit better to start with, but its certainly not
> foolproof.
>
> Anyway, I'm glad I finally got a proper working system with wsapi. I
> will continue to work with the sandbox since I really like the
> concept.

Glad things worked out for you. I may be a bit dogmatic in using my
sandboxed script for Lua/Luarocks, but that's precisely why I do it..
nothing else in the system can mess with the Lua installation, and
nothing ever leaks out of it. And with Lua being such a small
installation, it's almost silly not to replicate this when necessary.

Good feedback on the general install process in this thread.

- Jim

_______________________________________________
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