jambonz / jambonz-infrastructure

packer and cloudformation templates for creating EC2-based jambonz deployments
23 stars 29 forks source link

packer/jambonz-mini/scripts/install_freeswitch.sh: mod_lua.cpp:37:10: fatal error: lua.h: No such file or directory #31

Open asarubbo opened 1 year ago

asarubbo commented 1 year ago

Hello Dave,

when install_freeswitch.sh tries to compile freeswitch at https://github.com/jambonz/jambonz-infrastructure/blob/main/packer/jambonz-mini/scripts/install_freeswitch.sh#L125 I get:

making all mod_lua
make[4]: Entering directory '/usr/local/src/freeswitch/src/mod/languages/mod_lua'
  CXX      libluamod_la-mod_lua.lo
  CC       ../../../../libs/esl/src/mod_hash_la-esl.lo
  CCLD     mod_logfile.la
mod_lua.cpp:37:10: fatal error: lua.h: No such file or directory
 #include "lua.h"
          ^~~~~~~
compilation terminated.

I have bypassed this issue by passing LUA_CFLAGS to make in a way like:

LUA_CFLAGS="-I/usr/include/lua5.3"

but I'm wondering how it is working for you/others...