Skip to content

Instantly share code, notes, and snippets.

@logic855
Forked from drpauldixon/osx_haproxy.md
Created October 7, 2016 13:39
Show Gist options
  • Save logic855/b4e6bb110beadb42f1156fadcd78b215 to your computer and use it in GitHub Desktop.
Save logic855/b4e6bb110beadb42f1156fadcd78b215 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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment