Thank you for the suggestion. Now FreeSWITCH , Lua , LuaSQL (ODBC) working great.<div><br><br><div class="gmail_quote">On Sun, Mar 14, 2010 at 4:59 PM, Nazim Agabekov <span dir="ltr">&lt;<a href="mailto:nazim.agabekov@gmail.com">nazim.agabekov@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  

<div text="#000000" bgcolor="#ffffff">
I would not use luasql with mysql driver because it leaks memory.
Luasql odbc is better choice for production.<br>
What kind of errors do you have? If you installing luasql.odbc please
make sure you have unix-odbc development packages.<br><font color="#888888">
<br>
Nazim</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
On 03/14/2010 11:46 PM, Aloysius Lloyd wrote:
<blockquote type="cite">I am trying to install Luasql.  Lots of make errors.Here
is the steps I follow
  <div><br>
  </div>
  <div>
  <div>wget <a href="http://luaforge.net/frs/download.php/2686/luasql-2.1.1.tar.gz" target="_blank">http://luaforge.net/frs/download.php/2686/luasql-2.1.1.tar.gz</a></div>
  <div>tar xfvz luasql-2.1.1.tar.gz</div>
  <div>cd luasql-2.1.1/</div>
  <div>vi config</div>
  <div><br>
  </div>
  <div>uncomment the mysql</div>
  <div>enable mysql and change the mysql lib and include directory path.</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div>How to install LuaSql in CentOS 5.4?</div>
  <div><br>
  </div>
  <div>What is the best way to access mysql from Lua? </div>
  <div>odbc or natvie?</div>
  <div><br>
  </div>
  <div>Thanks</div>
  <div>Lloyd<br>
  <br>
  <br>
  <div class="gmail_quote">On Sun, Mar 14, 2010 at 2:49 PM, Aloysius
Lloyd <span dir="ltr">&lt;<a href="mailto:lloyd.aloysius@gmail.com" target="_blank">lloyd.aloysius@gmail.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">Nazim
&amp; Spencer , thank you.
    <div><br>
    </div>
    <div>readline development package install solved the problem. Here
is the Lua install on CentOS 5.4</div>
    <div><br>
    </div>
    <div>
    <div>yum install readline-devel</div>
    <div>
    <div>wget <a href="http://www.lua.org/ftp/lua-5.1.4.tar.gz" target="_blank">http://www.lua.org/ftp/lua-5.1.4.tar.gz</a></div>
    <div>tar zxf lua-5.1.4.tar.gz</div>
    <div>cd lua-5.1.4</div>
    <div>make linux </div>
    </div>
    <div>make linux install</div>
    <div><br>
    </div>
    <div>Thanks</div>
    <div>Lloyd</div>
    </div>
    <div>
    <div>
    <div><br>
    </div>
    <div><br>
    <br>
    <div class="gmail_quote">On Sun, Mar 14, 2010 at 2:40 PM, Spencer
Thomason <span dir="ltr">&lt;<a href="mailto:spencer@5ninesolutions.com" target="_blank">spencer@5ninesolutions.com</a>&gt;</span>
wrote:<br>
    <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
      <div style="word-wrap:break-word">I have Centos RPMS and source
RPMS for lua 5.1.4 at <a href="http://repo.5ninesolutions.com" target="_blank">http://repo.5ninesolutions.com</a><br>
      <font color="#888888">
      <div>
      <div> --<br>
      <strong>Spencer Thomason</strong><br>
5Nine Solutions LLC<br>
e. <a href="mailto:spencer@5ninesolutions.com" target="_blank">sales@5ninesolutions.com</a><br>
p. +1.888.271.7959<br>
f. +1.310.510.6980<br>
      <br>
      <a href="http://www.5ninesolutions.com/" target="_blank"><img></a> </div>
      </div>
      <br>
      </font>
      <div>
      <div>
      <div>
      <div>On Mar 14, 2010, at 11:26 AM, Aloysius Lloyd wrote:</div>
      <br>
      </div>
      </div>
      <blockquote type="cite">
        <div>
        <div>Hi All,
        <div><br>
        </div>
        <div>Can some one help me to install Lua . </div>
        <div><br>
        </div>
        <div>OS: CentOS 5.4</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
        <div>wget <a href="http://www.lua.org/ftp/lua-5.1.4.tar.gz" target="_blank">http://www.lua.org/ftp/lua-5.1.4.tar.gz</a></div>
        <div>tar zxf lua-5.1.4.tar.gz</div>
        <div>cd lua-5.1.4</div>
        <div>make linux</div>
        <div><br>
        </div>
        <div>But getting error when running <b>make linux </b></div>
        <div><b><br>
        </b></div>
        <div><b>Here is the Output</b></div>
        <div><br>
        </div>
        <div>
        <div>In file included from lua.h:16,</div>
        <div>                 from lua.c:15:</div>
        <div>luaconf.h:275:31: error: readline/readline.h: No such file
or directory</div>
        <div>luaconf.h:276:30: error: readline/history.h: No such file
or directory</div>
        <div>lua.c: In function âpushlineâ:</div>
        <div>lua.c:182: warning: implicit declaration of function
âreadlineâ</div>
        <div>lua.c:182: warning: assignment makes pointer from integer
without a cast</div>
        <div>lua.c: In function âloadlineâ:</div>
        <div>lua.c:210: warning: implicit declaration of function
âadd_historyâ</div>
        <div>make[2]: *** [lua.o] Error 1</div>
        <div>make[2]: Leaving directory `/usr/src/lua-5.1.4/src&#39;</div>
        <div>make[1]: *** [linux] Error 2</div>
        <div>make[1]: Leaving directory `/usr/src/lua-5.1.4/src&#39;</div>
        <div>make: *** [linux] Error 2</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Thank you in advance.</div>
        </div>
        <div><br>
        </div>
        </div>
        <div><br>
        </div>
        <div>Thanks,<br>
Lloyd </div>
        </div>
        </div>
        <div> _______________________________________________<br>
FreeSWITCH-users mailing list<br>
        <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
      </blockquote>
      </div>
      <br>
      </div>
      <br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
      <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
  </div>
  </div>
  <pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
  </pre>
</blockquote>
<br>
</div></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>