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 Jacob Miles Software Engineer jacob.e.miles at l-3com.com 903.457.4422 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130718/0efcb654/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 5163 bytes Desc: image001.png URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130718/0efcb654/attachment.png>
On 07/18/2013 09:56 AM, 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. >you're kidding right ? Why not just plug in the box somewhere else, do your install and move it back ?> 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 > > *Jacob Miles* > > Software Engineer** > > jacob.e.miles at l-3com.com <mailto:jacob.e.miles at l-3com.com> > > 903.457.4422 > > *l-3midLogo*** > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130718/1301bcc3/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 5163 bytes Desc: not available URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130718/1301bcc3/attachment.png>
On 07/18/2013 03:56 PM, 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.That's probably because Asterisk is not looking in /usr/local.> I am on a closed network, so no access to the internet so I am not able > to just install Lua using yum.You should have downloaded the lua RPMs to e.g. your laptop, then copy them to your Asterisk box with e.g. a USB stick and then install the Lua RPMs on your Asterisk box with: $ sudo yum install ./lua* You can find the CentOS 6.4 x86_64 Lua RPMs here: http://mirror.stanford.edu/yum/pub/centos/6.4/os/x86_64/Packages/ Regards, Patrick
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/luaIt 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.
On 07/18/2013 08:56 AM, 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 > >You don't mention it here, so I have to ask if you tried using --with-lua=/usr/local as an argument to configure. -- Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130718/2b1fb471/attachment.htm>
Reasonably Related Threads
- [PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
- pull request: upgrade to Lua 5.2.3, automatic Linux boot menu and cmenu binding
- Upgrade to Lua 5.2.2, add filesystem module and get_key binding
- Undef symbol FAIL: luaL_checklstring in vesa.c32
- Undef symbol FAIL: luaL_checklstring in vesa.c32