On Thu, Oct 28, 2010 at 01:29:12PM +0200, steve donovan wrote: > Now, Fedora is not my idea of a fun operating system, but sometimes > you just gotta (and apparently it has a lot of fans.) > > The cool thing is that lua is already installed on FC 12. The uncool > thing is that the Lua module path is at /usr/share not at > /usr/local/share, etc. > > Why people mess with standards is another question
You should file a bug to fedora and ask them to jsut _add_ /usr/ the standard paths lua uses for resolving module names. In Debian we use the following patch, and /usr/local/ is still in: #! /bin/sh /usr/share/dpatch/dpatch-run ## src_luaconf.h.dpatch by John V. Belmonte <[email protected]> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Set Lua's default PATH and CPATH. @DPATCH@ diff -urNad trunk~/src/luaconf.h trunk/src/luaconf.h --- trunk~/src/luaconf.h 2006-02-10 12:44:06.000000000 -0500 +++ trunk/src/luaconf.h 2006-02-17 21:32:55.000000000 -0500 @@ -83,13 +83,17 @@ #else #define LUA_ROOT "/usr/local/" +#define LUA_ROOT2 "/usr/" #define LUA_LDIR LUA_ROOT "share/lua/5.1/" +#define LUA_LDIR2 LUA_ROOT2 "share/lua/5.1/" #define LUA_CDIR LUA_ROOT "lib/lua/5.1/" +#define LUA_CDIR2 LUA_ROOT2 "lib/lua/5.1/" #define LUA_PATH_DEFAULT \ "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ - LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua" + LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \ + LUA_LDIR2"?.lua;" LUA_LDIR2"?/init.lua" #define LUA_CPATH_DEFAULT \ - "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so" + "./?.so;" LUA_CDIR"?.so;" LUA_CDIR2"?.so;" LUA_CDIR"loadall.so" #endif As already suggested, the easy fix is using env variables. Cheers -- Enrico Tassi _______________________________________________ Luarocks-developers mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers
