2010/7/12 Valerio Schiavoni <[email protected]>

> Hello Thomas,
>
> ubuntu 10.04 LTS
> luarocks 2.0.1 (it seems to be the latest pushed on ubuntu repositories?)
>
> When I install my rock module, libraries are being copied in
> ~/.luarocks/lib or ~/.luarocks/share.
>

because you run :
   $ luarocks install one_rock

when you run with sudo :
   $ sudo luarocks install one_rock
rock goes to /usr/local/lib/luarocks/rocks
and libraries & modules go to
/usr/local/lib/lua/5.1 or /usr/local/share/lua/5.1

François


>
> On Mon, Jul 12, 2010 at 1:39 PM,  <[email protected]> wrote:
>
> >    Can you provide us which version of Ubuntu and LuaRocks you are
> running, and how did you install LuaRocks? Since Ubuntu 9.04, all librairies
> should be installed in Lua's default path and readily available for all
> users. Users that would like to install their own librairies should append
> themselves to their own path the correct directories (if I'm not mistaken).
> >
> >    Thomas.
> >
> >  Le lun 12/07/10 10:41, "Valerio Schiavoni" [email protected] 
> > écrit:
> >> Hello,
> >> is it possible to install a rock so that the installed libraries (lua
> >> and native files) are automatically in the LUA_PATH and LUA_CPATH?
> >> I read this page: http://www.luarocks.org/en/Using_LuaRocks
> >> where it says:
> >> "If you installed the Lua interpreter bundled with LuaRocks on
> >> Windows, or if you built both Lua and LuaRocks on Unix with the
> >> default paths, the default library path settings will be already
> >> appropriate."
> >>
> >> Am I supposed to ask my users to modify by hand their paths, or can I
> >> do something inside the rockspec file to fix this?
> >>
> >> Thanks,
> >> Valerio
> >>
> >
> >
>
> _______________________________________________
> Luarocks-developers mailing list
> [email protected]
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers
>
_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to