For me, the mysql.so library didn't work until I ran ldconfig on the directory that contained it.<div><br></div><div>Mike van Lammeren</div><div><br><br><div class="gmail_quote">On Wed, Jan 27, 2010 at 7:15 PM, Adam Wilt <span dir="ltr"><<a href="mailto:wiltingtree@gmail.com">wiltingtree@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi, I followed the instructions in the Lua documentation for setting up luasql, but when I try to run my script I get:<div>
<br></div><div><div>2010-01-27 19:08:14.799250 [ERR] mod_lua.cpp:182 error loading module 'luasql.mysql' from file '/usr/local/lib/lua/5.1/luasql/mysql.so':</div>
<div> /usr/local/lib/lua/5.1/luasql/mysql.so: cannot restore segment prot after reloc: Permission denied</div><div>stack traceback:</div><div> [C]: ?</div><div> [C]: in function 'require'</div>
<div> /usr/local/freeswitch/scripts/l.lua:2: in main chunk</div><div><br></div><div>I'm running FreeSWITCH version 1.4 and luasql version 2.1.1.</div><div><br></div><div>I changed the permissions for mysql.so and for my script to 777, so I'm not sure where the permission problem could be.</div>
<div><br></div><div>I'd appreciate any suggestions.</div><div><br></div><div>Thanks,</div><div>Adam</div><div><br></div></div>
<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></blockquote></div><br></div>