And you can make queries against your MySQL database, and get results, etc.?<br><br><div class="gmail_quote">On Thu, Jan 28, 2010 at 2:43 AM, David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
That works fine:<br>
<br>
box:~# lua testdb.lua<br>
box:~#<br>
<font color="#888888"><br>
<br>
David<br>
</font><div><div></div><div class="h5"><br>
On Thu, Jan 28, 2010 at 7:27 AM, Mike van Lammeren<br>
<<a href="mailto:mike@van.lammeren.net">mike@van.lammeren.net</a>> wrote:<br>
> Have you tried running a Lua script that includes the library from outside<br>
> of FreeSWITCH? What does that do?<br>
><br>
> On Wed, Jan 27, 2010 at 11:47 PM, Adam Wilt <<a href="mailto:wiltingtree@gmail.com">wiltingtree@gmail.com</a>> wrote:<br>
>><br>
>> I tried running ldconfig on the directory containing mysql.so, but it did<br>
>> not help.<br>
>> So it sounds like there could be a bug in the latter versions?<br>
>><br>
>> On Wed, Jan 27, 2010 at 8:09 PM, David Villasmil<br>
>> <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> wrote:<br>
>>><br>
>>> I got the same error, my script was working with no problems before an<br>
>>> update to trunk.<br>
>>><br>
>>> David<br>
>>><br>
>>> On Thu, Jan 28, 2010 at 1:15 AM, Adam Wilt <<a href="mailto:wiltingtree@gmail.com">wiltingtree@gmail.com</a>> wrote:<br>
>>> > Hi, I followed the instructions in the Lua documentation for setting up<br>
>>> > luasql, but when I try to run my script I get:<br>
>>> > 2010-01-27 19:08:14.799250 [ERR] mod_lua.cpp:182 error loading module<br>
>>> > 'luasql.mysql' from file '/usr/local/lib/lua/5.1/luasql/mysql.so':<br>
>>> > /usr/local/lib/lua/5.1/luasql/mysql.so: cannot restore segment<br>
>>> > prot<br>
>>> > after reloc: Permission denied<br>
>>> > stack traceback:<br>
>>> > [C]: ?<br>
>>> > [C]: in function 'require'<br>
>>> > /usr/local/freeswitch/scripts/l.lua:2: in main chunk<br>
>>> > I'm running FreeSWITCH version 1.4 and luasql version 2.1.1.<br>
>>> > I changed the permissions for mysql.so and for my script to 777, so I'm<br>
>>> > not<br>
>>> > sure where the permission problem could be.<br>
>>> > I'd appreciate any suggestions.<br>
>>> > Thanks,<br>
>>> > Adam<br>
>>> ><br>
>>> > _______________________________________________<br>
>>> > FreeSWITCH-users mailing list<br>
>>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> ><br>
>>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>> ><br>
>>> ><br>
>>><br>
>>> _______________________________________________<br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>