It does not use the one in src/mod/languages/mod_lua/lua.  Its only using system lua now as of 1.6 release.

It's using pkg-config to find it.. searching in order for the following pkg-config package names:

lua5.2 lua-5.2 lua5.1 lua-5.1 lua

Whichever one it finds first of those via pkg-config is what it tries to use.  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.

Also, if libdir for that lua libraries dir is not already in ld.so.conf you may need to add there and ldconfig.


On Apr 8, 2016, at 1:49 PM, Sausage Side <sausageside@yahoo.com> wrote:

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 :

make[3]: Entering directory `/usr/local/src/freeswitch-1.6/src/mod/languages/mod_lua'
  CXX      mod_lua_la-mod_lua.lo
mod_lua.cpp:37:17: fatal error: lua.h: No such file or directory
 #include "lua.h"

Not surprising considering configure reports this :

"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"


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.

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 ?

FreeSWITCH Version 1.6.7+git~20160401T134007Z~f0c3870be3~64bit (git f0c3870 2016-04-01 13:40:07Z 64bit)

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org