[asterisk-users] LUA

A J Stiles asterisk_list at earthshod.co.uk
Thu Jul 18 10:30:22 CDT 2013


On Thursday 18 July 2013, Jacob.E.Miles at l-3com.com wrote:
> I am attempting to setup my server to use Lua for the dialplan
> (extentions.lua), but I am unable to get the asterisk configure script
> to find the installation of Lua on my box.  I have downloaded the Lua
> sources from the www.lua.org site, and I have installed via the "make
> linux install" command.  I can execute lua scripts via the command line,
> but asterisk configure script is unable to find the installation of Lua.
> 
> 
> 
> I am on a closed network, so no access to the internet so I am not able
> to just install Lua using yum.
> 
> 
> 
> OS CentOS 6.4
> 
> Asterisk version 1.8.13.0 & 11.4
> 
> 
> 
> $ find / -name *lua*
> 
> /usr/local/include/lua.h
> 
> /usr/local/include/lua.hpp
> 
> /usr/local/include/lualib.h
> 
> /usr/local/include/luaconf.h
> 
> /usr/local/lib/lua
> 
> /usr/local/lib/liblua.a
> 
> /usr/local/bin/luac
> 
> /usr/local/bin/lua
> 
> /usr/lib64/liblua-5.1.so
> 
> /usr/bin/luac
> 
> /usr/bin/lua

It probably doesn't help much that you have both a Lua built from Source Code 
in /usr/local/  (which will definitely have all the developers' files you would 
have got from installing lua-devel),  and what looks like a precompiled Lua in 
/usr/  (which is missing them).  Try

# ldconfig
to force the machine to sort out its libraries; then cd back into your 
Asterisk source tree and run
# ./configure --with-lua=/usr/local/
to force the Asterisk configure script to use the Lua you built from Source and 
which will have all the development files.


-- 
AJS

Answers come *after* questions.



More information about the asterisk-users mailing list