[asterisk-users] Installing LUA

Danny Nicholas danny at debsinc.com
Wed Jun 17 09:57:22 CDT 2009


In the makeopts file change 
LUA_INCLUDE=
To
LUA_INCLUDE=-I/usr/include

And do make again.
This should fix it.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of John A.
Sullivan III
Sent: Wednesday, June 17, 2009 9:43 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Installing LUA

On Wed, 2009-06-17 at 09:01 -0500, Tilghman Lesher wrote:
> 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.
> 
Hmm . . . to my great surprise, it is still not working:

[compuser at pbx01 asterisk-1.6.1.1]$ 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'

Versions seem correct:
lua-devel-5.1.2-1.el5.kb
lua-5.1.2-1.el5.kb

The files exist:
[root at pbx01 Asterisk]# locate lua
/download/lua-5.1.2-1.el5.kb.x86_64.rpm
/download/lua-devel-5.1.2-1.el5.kb.x86_64.rpm
/etc/asterisk/extensions.lua
/etc/joe/syntax/lua.jsf
/home/compuser/Asterisk/asterisk-1.6.1.0/configs/extensions.lua.sample
/home/compuser/Asterisk/asterisk-1.6.1.0/pbx/.pbx_lua.makeopts
/home/compuser/Asterisk/asterisk-1.6.1.0/pbx/.pbx_lua.moduleinfo
/home/compuser/Asterisk/asterisk-1.6.1.0/pbx/pbx_lua.c
/home/compuser/Asterisk/asterisk-1.6.1.1/configs/extensions.lua.sample
/home/compuser/Asterisk/asterisk-1.6.1.1/pbx/.pbx_lua.makeopts
/home/compuser/Asterisk/asterisk-1.6.1.1/pbx/.pbx_lua.moduleinfo
/home/compuser/Asterisk/asterisk-1.6.1.1/pbx/pbx_lua.c
/sbin/mpath_prio_alua
/sbin/mpath_prio_alua.static
/usr/bin/lua
/usr/bin/luac
/usr/include/lua.h
/usr/include/lua.hpp
/usr/include/luaconf.h
/usr/include/lualib.h
/usr/lib64/liblua-5.1.so
/usr/lib64/liblua.so
/usr/lib64/pkgconfig/lua.pc
/usr/share/doc/lua-5.1.2
/usr/share/doc/lua-5.1.2/COPYRIGHT
/usr/share/doc/lua-5.1.2/HISTORY
/usr/share/doc/lua-5.1.2/README
/usr/share/doc/lua-5.1.2/amazon.gif
/usr/share/doc/lua-5.1.2/contents.html
/usr/share/doc/lua-5.1.2/cover.png
/usr/share/doc/lua-5.1.2/logo.gif
/usr/share/doc/lua-5.1.2/lua.css
/usr/share/doc/lua-5.1.2/lua.html
/usr/share/doc/lua-5.1.2/luac.html
/usr/share/doc/lua-5.1.2/manual.css
/usr/share/doc/lua-5.1.2/manual.html
/usr/share/doc/lua-5.1.2/readme.html
/usr/share/doc/postgresql-8.1.11/html/regress-evaluation.html
/usr/share/doc/rpm-4.4.2.3/COPYRIGHT-lua
/usr/share/locale/lua
/usr/share/locale/lua/LC_MESSAGES
/usr/share/man/man1/lua.1.gz
/usr/share/man/man1/luac.1.gz
/usr/share/man/man8/mpath_prio_alua.8.gz
/usr/share/vim/vim70/ftplugin/lua.vim
/usr/share/vim/vim70/indent/lua.vim
/usr/share/vim/vim70/syntax/lua.vim

If I run ./configure --with-lua=/usr/lib64, it fails:
checking for mandatory modules:  LUA... fail

configure: ***
configure: *** The LUA installation appears to be missing or broken.
configure: *** Either correct the installation, or run configure
configure: *** including --without-lua.

Any idea what I am doing wrong? Thanks - John
-- 
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsullivan at opensourcedevel.com

http://www.spiritualoutreach.com
Making Christianity intelligible to secular society


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list