Luarocks is a package management system for lua, for instance you can use luarocks to install luasql-postgres :<div>luarocks install luasql-postgres</div><div><br></div><div>Then on your lua scripts you build on FreeSWITCH, you can use/include those libraries.</div>
<div>You only have to make sure to configure your lua.conf.xml and set module-directory to where the packages are installed on your distribution :</div><div><br></div><div>That's what I have at the moment with Ubuntu 12.04 :</div>
<div><div> <param name="module-directory" value="/usr/lib/x86_64-linux-gnu/?.so"/></div><div> <param name="module-directory" value="/usr/lib/x86_64-linux-gnu/lua/5.1/?.so"/></div>
<div> <param name="module-directory" value="/usr/lib/x86_64-linux-gnu/lua/5.1/luasql/?.so"/></div><div> <param name="module-directory" value="/usr/lib/i386-linux-gnu/lua/5.1/?.so"/></div>
<div> <param name="module-directory" value="/usr/local/lib/lua/5.1/?.so"/></div></div><div><br></div><div><br><br><div class="gmail_quote">On Thu, Jun 13, 2013 at 2:42 PM, Alex Lake <span dir="ltr"><<a href="mailto:alex@digitalmail.com" target="_blank">alex@digitalmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was wondering about how one might use luarocks with the lua used by<br>
Freeswitch - is this possible? Can't see much of help in the wiki, but<br>
if I find out, will pay the tax! ;-)<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Kind regards,<br>/Areski<br><br>----<br>Arezqui Belaid, <<a href="mailto:areski@gmail.com" target="_blank">areski@gmail.com</a>><br>Founder at Star2Billing (<a href="http://www.star2billing.com" target="_blank">www.star2billing.com</a>)<br>
<br>Tel: +34650784355<br>Twitter: <a href="http://twitter.com/areskib" target="_blank">http://twitter.com/areskib</a> <br>LinkedIn: <a href="http://www.linkedin.com/in/areski" target="_blank">http://www.linkedin.com/in/areski</a>
</div>