Thanks for the comments, guys! I got it to compile after adding these lines to the /luasql-2.1.1/config file:
# Compilation parameters # Driver specific ######## ODBC DRIVER_LIBS= -L/usr/lib/odbc -lmyodbc DRIVER_INCS= -I/usr/include DEFS += -D UNIXODBC I am working on some Lua scripts that run under FreeSWITCH, using the native MySQL driver and LuaSQL. Unfortunately, there is a pretty serious memory leak happening somewhere. I created a test script that made some queries against a MySQL database, and after running it just a few thousand times, FreeSWITCH heads for 100% memory use. There are claims on the FreeSWITCH mailing list that the fault lies with LuaSQL. I'm not enough of a C programmer to judge that claim, however. If anyone knows a way to get the native MySQL driver working for Lua and FreeSWITCH, I'd appreciate hearing about it, since ODBC isn't my first choice for a Linux box. Thanks again for the comments! Mike van Lammeren On Fri, Feb 12, 2010 at 11:07 AM, Luís Santos <[email protected]>wrote: > Robert Raschke escreveu: > > >> On Fri, Feb 12, 2010 at 3:53 PM, Luís Santos >> <[email protected]<mailto: >> [email protected]>> wrote: >> >> I don't think the LuaSQL ODBC driver is intended for compilation >> under Linux. >> >> If I recall correctly, it uses Windows-specific headers. >> >> >> It built fine against unixODBC last time I tried. >> > Thanks, that probably means I don't recall correctly. :-) > > > _______________________________________________ > Kepler-Project mailing list > [email protected] > http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project > http://www.keplerproject.org/ >
_______________________________________________ Kepler-Project mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/
