Dear All,
Struggling to install HAPROXY 2.1.2 with USE_LUA=1
Tried below options:
[root@centos haproxy-2.1.2]# make -j $(nproc) TARGET=generic USE_SYSTEMD=1 USE_LINUX_TPROXY=1 USE_CRYPT_H=1 USE_GETADDRINFO=1 USE_ZLIB=1 USE_REGPARM=1 USE_OPENSSL=1 USE_PCRE=1 USE_THREAD=1 USE_LUA=1
Getting below error:
Makefile:543: *** unable to automatically detect the Lua library name, you can enforce its name with LUA_LIB_NAME= (where can be lua5.3, lua53, lua, …). Stop.
With below option:
make -j $(nproc) TARGET=generic USE_SYSTEMD=1 USE_LINUX_TPROXY=1 USE_CRYPT_H=1 USE_GETADDRINFO=1 USE_ZLIB=1 USE_REGPARM=1 USE_OPENSSL=1 USE_PCRE=1 USE_THREAD=1 USE_LUA=1 LUA_LIB_NAME=/usr/lib64/lua/5.3
CC src/ssl_sock.o
In file included from include/types/stream.h:36,
from include/proto/log.h:35,
from include/common/cfgparse.h:30,
from src/ssl_sock.c:57:
include/types/hlua.h:6:10: fatal error: lua.h: No such file or directory
#include <lua.h>
^~~~~~~
compilation terminated.
make: *** [Makefile:846: src/ssl_sock.o] Error 1
But if I try with out USE_LUA=1 ==> it works fine.
Could some one kindly help to fix the issue.
Much appreciated.
Kind Regards
-Siva