lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> >> require 'lfs'
> > error loading module 'lfs' from file '/usr/local/lib/lua/5.1/':
> >        /usr/local/lib/lua/5.1/ undefined symbol: luaL_openlib
> I believe that the desired behavior for require is to detect Lua
> version mismatch and skip the module to try to find a next one that
> fits better. I'm not sure if it is doable though...

No, it's not. The error above is raised by dlsym, when it tries but does not
find the luaL_openlib symbol.

If you're suggesting a loader that carries on trying even if it does find
a suitable library but does not find the required symbol, then it's doable.