Hi Juha,

On 05/03/2015 01:13 PM, Juha Heinanen wrote:
> i tried to build kamailio from latest master on debian jessie, but
> building app_lua module failed:
> 
> ls: cannot access /usr/local/lib/liblua*: No such file or directory
> ls: cannot access /usr/local/lib/liblua*: No such file or directory
> ls: cannot access /usr/local/lib/liblua*: No such file or directory
> ls: cannot access /usr/local/lib/liblua*: No such file or directory
> CC (cc) [M app_lua.so]                app_lua_mod.o
> In file included from app_lua_mod.c:35:0:
> app_lua_api.h:27:17: fatal error: lua.h: No such file or directory
>  #include <lua.h>
>                  ^
> compilation terminated.
> ../../Makefile.rules:97: recipe for target 'app_lua_mod.o' failed
> 
> in debian jessie, lua.h is in /usr/include/lua5.1 and the libs are
> installed like this (amd64 arch):
> 
> $ dpkg -L liblua5.1-0
[snip]
> i noticed that there was some major changes in the Makefile 22 days ago,
> which may have caused this. earlier i have had no trouble with app_lua
> build in this environment.

I have no problem building app_lua on jessie:

> root@e860e2e0dc90:/code# cat /etc/debian_version 
> 8.0

> git show --abbrev-commit | grep commit
> commit e1d68c3

> root@e860e2e0dc90:/code# make distclean
> target architecture <x86_64>, host architecture <x86_64>
> rm -f dispatcher.d dispatcher.d dispatcher.d *~
> Makefile:4: ../../config.mak: No such file or directory
> make[1]: *** No rule to make target '../../config.mak'.  Stop.
> make --no-print-directory -C lib distclean
> Making distclean in srdb1
> Making distclean in kmi
> Making distclean in ims
> Making distclean in xcap
> Making distclean in trie
> Making distclean in print
> Making distclean in cds
> Making distclean in presence
> Making distclean in kcore
> Making distclean in srdb2
> Making distclean in srutils
> Making distclean in shm_regex
> Making distclean in binrpc
> rm -f config.mak
> root@e860e2e0dc90:/code# make modules modules=modules/app_lua
> Makefile:107: config.mak: No such file or directory
> target architecture <x86_64>, host architecture <x86_64>
> making config...
> CC (gcc) [M app_lua.so]               app_lua_mod.o
> CC (gcc) [M app_lua.so]               app_lua_exp.o
> CC (gcc) [M app_lua.so]               app_lua_sr.o
> CC (gcc) [M app_lua.so]               app_lua_api.o
> CC (gcc) [L libkcore.so.1.0]          parse_privacy.o
> CC (gcc) [L libkcore.so.1.0]          regexp.o
> CC (gcc) [L libkcore.so.1.0]          parse_sst.o
> CC (gcc) [L libkcore.so.1.0]          strcommon.o
> CC (gcc) [L libkcore.so.1.0]          statistics.o
> CC (gcc) [L libkcore.so.1.0]          faked_msg.o
> CC (gcc) [L libkcore.so.1.0]          kstats_wrapper.o
> CC (gcc) [L libkcore.so.1.0]          cmpapi.o
> LD (gcc) [L libkcore.so.1.0]          libkcore.so.1.0
> LD (gcc) [M app_lua.so]               app_lua.so
> root@e860e2e0dc90:/code# 

the package you need is liblua5.1-dev

Hope this helps,
Victor

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to