Skip to content

Instantly share code, notes, and snippets.

@drpauldixon
Created June 7, 2016 12:15
Show Gist options
  • Save drpauldixon/b75a3348a58577b936834481325eb5de to your computer and use it in GitHub Desktop.
Save drpauldixon/b75a3348a58577b936834481325eb5de to your computer and use it in GitHub Desktop.
Compile HAProxy with Lua and OpenSSL on Mac OS X

Compile HAProxy with Lua and OpenSSL on Mac OS X

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 <willy@haproxy.org>
@miraclebg
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment