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." I'm not in the first scenario. I'm on a ubuntu (9.04/10.04), and I don't know the built options used to compile the lua package. The only thing I know is that the default paths are like this: $lua Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio > print(package.path) ./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua > print(package.cpath) ./?.so;/usr/local/lib/lua/5.1/?.so;/usr/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so > 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
