From: John L. <jla...@gm...> - 2006-05-08 15:24:43
|
On 5/8/06, Steve Kieu <ha...@ya...> wrote: > I would like to use luasql with wxlua and failled. Do googling and saw so= me > old thread about it but not sure how to resolve. > > If I do a cd to the lua dir inside wxLua distribution and make; a binary > lua will be created in bin of wxLua. Using that binary ; > require'luasqlmysql' is fine. > > However if I use the binary wxlua and type require'luasqlmysl' in the > editor window and run, the console prints the error: > > error loading module 'luasqlmysql' from file './luasqlmysql.so': > dynamic libraries not enabled; check your Lua installation > > how can I enable it in wxlua? which is a bit strange as the lua core buil= t > exactly the same produce lua baniry and works, It is strange indeed, what platform are you using? I'm guessing Linux? I just looked at the Makefiles in modules/lua and it looks like the exact same object files are used for the lualib and the lua executable so the code in loadlib.c should compile this #ifdefed code for both. #if defined(LUA_DL_DLOPEN) ... In the Makefile in apps/wxlua/src it uses this to compile lua, is this what you did when you compile lua yourself? lua: @(cd $(WXLUA_DIR)/modules/lua && make linux) Regards, John Labenski |