[asterisk-users] Installing LUA

Watkins, Bradley Bradley.Watkins at compuware.com
Wed Jun 17 11:36:42 CDT 2009


 

> My guess is that when running the compile test ( This line:
> 'configure:42995: gcc -o conftest -g -O2   conftest.c 
> -llua-5.1    >&5'
> ) it is necessary to add '-lm' in order to link in the standard math
> library.
> 
> - Brad
> 

One more bit of magic necessary here, as pbx/pbx_lua.c has includes for:
#include <lua5.1/lua.h>
#include <lua5.1/lauxlib.h>
#include <lua5.1/lualib.h>

On Redhat-based systems, it needs to be:
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>



More information about the asterisk-users mailing list