On Wed, Jul 14, 2010 at 3:59 PM, Thijs Koerselman
<thijskoersel...@gmail.com> wrote:
> 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.

I would remove luarocks from both installed locations, and clear both
of your rocks trees. When I am writing applications, particularly for
the web I ALWAYS install a new copy of both lua and luarocks, to keep
them separate from everything else in my system. It also helps
immensely with troubleshooting.

Create a directory that you want to include your application and
environment. Create a file install.sh and add the following script to
that file:

http://snipt.net/jnwhiteh/install-lua-and-luarocks-into-a-sandboxed-directory/

Run this shell script, which will take care of downloading lua and
luarocks and installing them into your current directory. Once that's
all done, you'll have a sandboxed lua/luarocks installation.

To add a rock, use ./sandbox/bin/luarocks install wsapi

Now to use this Lua/Luarocks, just point your hello.lua to it
directly. If you post that, I can help you with it as well.

- 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