Installing HAProxy in MacOs BigSur

ABEL KURUVILLA
May 18, 2021

HAProxy is one of the famous open-source application used for load balancing and proxy. I use it mainly as a proxy in my local development environment.

Method 1:

We can install haproxy in MacOs using homebrew. Just run the command :

brew install haproxy

However after the recent BigSur update(mid May 2021), the haproxy installed via this method was not working properly. So I had to find an alternative method. This is much more lengthy and manual.

Method 2:

  1. Download your desired haproxy version from here.
  2. Remove existing haproxy in brew using command brew uninstall haproxy
  3. Extract folder and cd into the folder
  4. Run make clean
  5. Run make -j6 TARGET=osx USE_KQUEUE=1 USE_POLL=1 USE_PCRE=1 USE_THREAD=1 USE_OPENSSL=1 USE_ZLIB=1 SSL_LIB=/usr/local/opt/openssl/lib SSL_INC=/usr/local/opt/openssl/include ADDLIB=-lcrypto
  6. Check by typing ./haproxy
  7. Run sudo make install
  8. Run sudo ln -s /usr/local/sbin/haproxy /usr/local/bin/haproxy
  9. Run haproxy and check if everything is successfull

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

ABEL KURUVILLA
ABEL KURUVILLA

Written by ABEL KURUVILLA

A software engineer , learning all technologies, geek, anime and fiction fan

No responses yet

Write a response