Robert Scheck pointed out that I managed to break internal lua Friday
night.
The symptom looks like this:
error: Lua script failed: [string "./local/lom.lua"]:24: module 'lxp'
not found:
no field package.preload['lxp']
no file './lxp.lua'
no file '/usr/local/share/lua/5.1/lxp.lua'
no file '/usr/local/share/lua/5.1/lxp/init.lua'
no file '/usr/local/lib/lua/5.1/lxp.lua'
no file '/usr/local/lib/lua/5.1/lxp/init.lua'
no file './lxp.so'
no file '/usr/local/lib/lua/5.1/lxp.so'
no file '/usr/local/lib/lua/5.1/
loadall.so'popt-1.13-4.fc10.i386
There's at least two issues there.
1) the _G paths in lua likely should be made rpm specific, perhaps
/usr/lib/rpm/lua
although lua makes a sharper distinction between moudule.lua scripts
(in /usr/share/lua/5.1) and compiled module.so (in /usr/lib/lua/5.1)
so one /usr/lib/rpm/lua may not be sufficient.
2) there's more that I have to do to do to get both a byte coded
wrapper and
a lxp.so module planted internally to rpm.
These commands (relative to todays date) will undo my damage on Friday
cd lua
cvs up -D "2 days ago" Makefile.am
I'll backout the b0rkage tomorrow if I can't repair.
I'm still getting up to speed on lua programming.
FWIW, if interested in lua, install "luarocks", the lua package manager.
Your life will be lots easier than building from source. Took a while
to figger ...
73 de Jeff
Received on Sun Oct 26 08:57:45 2008