Tags: osx haproxy lua openssl
Compile LUA:
mkdir ~/oss
wget http://www.lua.org/ftp/lua-5.3.3.tar.gz
tar xvzf lua-5.3.3.tar.gz
cd lua-5.3.3
make macosx
make INSTALL_TOP=~/oss/lua-5.3.3 install
Compile Haproxy with Lua and OpenSSL:
wget http://www.haproxy.org/download/1.6/src/haproxy-1.6.5.tar.gz
tar xzf haproxy-1.6.5.tar.gz
cd haproxy-1.6.5
make TARGET=generic USE_OPENSSL=1 USE_PCRE=1 USE_LUA=1 LUA_LIB=~/oss/lua-5.3.3/lib LUA_INC=~/oss/lua-5.3.3/include SSL_INC=/usr/local/opt/openssl/include SSL_LIB=/usr/local/opt/openssl/lib LUA_LIB_NAME=lua LUA_LD_FLAGS="-Wl -L ~/oss/lua-5.3.3/lib "
./haproxy -v
HA-Proxy version 1.6.5 2016/05/10
Copyright 2000-2016 Willy Tarreau <[email protected]>
Thanks!