[sr-dev] kamailio 3.1 app_lua - CentOS install issue

Henning Westerholt henning.westerholt at 1und1.de
Tue Oct 5 13:34:50 CEST 2010


On Tuesday 05 October 2010, Watkins, Bradley wrote:
>> [..]
>> That will, almost certainly, break lua compilation on non-CentOS distros
>> as well as other platforms.
> 
> The correct way, at least on Linux (I don't personally do much
> cross-platform work), is to use pkg-config to both test for the correct
> version and get the linker flags.
> 
> The output on my Fedora workstation, for example:
> 
> [user at workstation]$ pkg-config --libs lua
> -llua -lm -ldl
> [user at workstation]$

Hi Bradley,

you're right, either use pkg-config or a provided tool from the package (like 
mysql_config for mysql) in the Makefile would be the most compatible way to 
get the correct library name, path and flags for the compilation.

Viele Grüße,

Henning



More information about the sr-dev mailing list