<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">It does not use the one in&nbsp;<span style="font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">src/mod/languages/mod_lua/lua</span>. &nbsp;Its only using system lua now as of 1.6 release.<div class=""><br class=""></div><div class="">It's using pkg-config to find it.. searching in order for the following pkg-config package names:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">lua5.2 lua-5.2 lua5.1 lua-5.1 lua</span></div></div><div class=""><br class=""></div><div class="">Whichever one it finds first of those via pkg-config is what it tries to use. &nbsp;If you manually or otherwise install lua5.2, just make sure that the .pc file is somewhere in PKG_CONFIG_PATH, and has a name in that list before the system one it is finding, it will then insert the CFLAGS and LDFLAGS in order to find the headers and libs in the paths from that pc file before the system one.</div><div class=""><br class=""></div><div class="">Also, if libdir for that lua libraries dir is not already in ld.so.conf you may need to add there and ldconfig.</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 8, 2016, at 1:49 PM, Sausage Side &lt;<a href="mailto:sausageside@yahoo.com" class="">sausageside@yahoo.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue-Light, 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" class=""><div id="yui_3_16_0_ym19_1_1460135455484_9435" class="">I have installed FS 1.6.7 master onto a new Linode Centos 7.1 VM. This comes with Lua 5.1 preinstalled, and I cannot uninstall it, it would seem, as it reports it would break things (like yum). My problem is that when I make, it fails with this :</div><div dir="ltr" id="yui_3_16_0_ym19_1_1460135455484_9454" class=""><br class=""></div><div id="yui_3_16_0_ym19_1_1460135455484_9486" dir="ltr" class="">make[3]: Entering directory `/usr/local/src/freeswitch-1.6/src/mod/languages/mod_lua'<br id="yui_3_16_0_ym19_1_1460135455484_9478" class="">&nbsp; CXX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mod_lua_la-mod_lua.lo<br id="yui_3_16_0_ym19_1_1460135455484_9479" class="">mod_lua.cpp:37:17: fatal error: lua.h: No such file or directory<br id="yui_3_16_0_ym19_1_1460135455484_9480" class="">&nbsp;#include "lua.h"<br id="yui_3_16_0_ym19_1_1460135455484_9481" class=""></div><div id="yui_3_16_0_ym19_1_1460135455484_9668" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_ym19_1_1460135455484_9706" dir="ltr" class="">Not surprising considering configure reports this :</div><div id="yui_3_16_0_ym19_1_1460135455484_9716" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_ym19_1_1460135455484_9707" dir="ltr" class="">"checking for lua5.2... checking for lua-5.2... checking for lua5.1... checking for lua-5.1... checking for lua... checking for alMidiGainSOFT in -lopenal... no"</div><div id="yui_3_16_0_ym19_1_1460135455484_9717" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_ym19_1_1460135455484_9669" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_ym19_1_1460135455484_9523" dir="ltr" class="">If I do "yum install lua-devel" it all compiles but with version 5.1, not 5.2, obviously as Centos is installing the 5.1 headers as that is its current repo version. <br class=""></div><div id="yui_3_16_0_ym19_1_1460135455484_9560" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_ym19_1_1460135455484_9586" dir="ltr" class="">So, my question is how do I make FS pick up the bundled 5.2 during the "configure" step, that I believe is has in "/usr/local/src/freeswitch/src/mod/languages/mod_lua/lua" and not fail unless the -devel package for the 5.1 version is installed via yum ?</div><div id="yui_3_16_0_ym19_1_1460135455484_9543" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_ym19_1_1460135455484_9542" dir="ltr" class=""><span id="yui_3_16_0_ym19_1_1460135455484_9642" dir="ltr" class="">FreeSWITCH Version 1.6.7+git~20160<wbr id="yui_3_16_0_ym19_1_1460135455484_9643" class="">401T134007Z~f0c<wbr id="yui_3_16_0_ym19_1_1460135455484_9644" class="">3870be3~64bit (git f0c3870 2016-04-01 13:40:07Z 64bit)</span></div><div id="yui_3_16_0_ym19_1_1460135455484_9652" dir="ltr" class=""><span id="yui_3_16_0_ym19_1_1460135455484_9642" dir="ltr" class=""><br class=""></span></div></div></div>_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>