Hmm this isn't looking very good at all. I installed luarocks + the
wsapi module as a root user, and now my other luarocks installation is
messed up:

thijskoerselman$ luarocks list
Failed loading manifest for /Users/thijskoerselman/.luarocks/lib/luarocks/rocks

Installed rocks:
----------------

luafilesystem
   1.5.0-1 (installed) - /opt/local/var/luarocks/lib/luarocks/rocks

wsapi
   1.3.4-1 (installed) - /opt/local/var/luarocks/lib/luarocks/rocks


All the rocks I had installed are not listed, only the root ones. What
would be the correct way to clean this mess, I'm starting to get
confused.

Thijs



On Wed, Jul 14, 2010 at 4:35 PM, Thijs Koerselman
<thijskoersel...@gmail.com> wrote:
> Hi Jim,
>
>>>
>>> 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.
>
> In my httpd.conf file I've set the Apache user to myself. So that
> should be enough to give Apache access to those files no?
>
> I've started to install the wsapi module as root user, since that's
> what you are suggesting right? I'm still trying out things, without
> luck so far, but I noticed a difference in the wsapi.cgi scripts.
>
> The root user script contains this exec:
> exec "/opt/local/bin/lua" -lluarocks.loader
> "/opt/local/var/luarocks/lib/luarocks/rocks/wsapi/1.3.4-1/bin/wsapi.cgi"
> "$@"
>
> My user script contains this exec:
> exec "/usr/local/bin/lua" -lluarocks.require
> "/Users/thijskoerselman/.luarocks//rocks/wsapi/1.3.4-1/bin/wsapi.cgi"
> "$@"
>
> That seems weird since both use the same version. Hope its a clue,
> meanwhile I'm continuing my quest.
>
> Thijs
>

_______________________________________________
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