[asterisk-users] Installing LUA

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Jun 17 09:01:30 CDT 2009


On Wednesday 17 June 2009 08:38:19 John A. Sullivan III wrote:
> On Wed, 2009-06-17 at 07:49 -0400, Watkins, Bradley wrote:
> > > Hello, all.  The little bit of reading I've done on lua makes me eager
> > > to give it a try.  However, when I try to install it (Asterisk 1.6.1.1
> > > on CentOS 5.3), it is not available in menuselect.  I have
> > > installed lua
> > > and lua-devel.  I've seen very little about it in my Internet
> > > searches.
> > > What else must I do so that it installs? Thanks - John
> >
> > What do you see in the config.log in the asterisk source directory with
> > respect to lua (say, the output of 'grep -i lua config.log)?
> >
> > - Brad
>
> <snip>
> Thanks.  I see:
> [compuser at pbx01 asterisk-1.6.1.0]$ grep -i lua config.log
> configure:42697: checking for luaL_newstate in -llua5.1
> configure:42732: gcc -o conftest -g -O2   conftest.c -llua5.1    >&5
> /usr/bin/ld: cannot find -llua5.1
>
> | char luaL_newstate ();
> | return luaL_newstate ();
>
> ac_cv_lib_lua5_1_luaL_newstate=no
> LUA_DIR=''
> LUA_INCLUDE=''
> LUA_LIB=''
> PBX_LUA='0'
>
> When I check the installed version I see:
> [compuser at pbx01 asterisk-1.6.1.0]$ rpm -q lua
> lua-5.0.2-1.el5.rf
>
> I assume this is telling me CentOS installed 5.0.2 and Asterisk is
> looking for 5.1 - John

That is correct.  The code for Lua uses certain features in the 5.1 version
that aren't present in previous versions.

-- 
Tilghman



More information about the asterisk-users mailing list