Skip to content

Instantly share code, notes, and snippets.

@mslinn
Last active April 20, 2019 16:23
Show Gist options
  • Select an option

  • Save mslinn/786cf6c7ff0cc12ec13a1210b5df6f6f to your computer and use it in GitHub Desktop.

Select an option

Save mslinn/786cf6c7ff0cc12ec13a1210b5df6f6f to your computer and use it in GitHub Desktop.
Build a working version of pound on Ubuntu 18.04

The following fetches the source code for the Pound reverse proxy and load balancer into a new directory under the current directory and builds it.

  1. Install the necessary packages

    sudo apt install -y git gcc make autoconf automake libssl-dev libpcre3-dev openssl
    
  2. Clone the repo. There are multiple sources, choose the one you want. Both provide support for OpenSSL >= 1.1 and WebSockets. Only perform one of the following commands.

    a. patrodyne – a fork of Pound.

    git clone https://github.com/patrodyne/pound/
    

    b. graygnuorg – This branch was 16 commits behind patrodyne as of April 20, 2019:

    git clone https://github.com/graygnuorg/pound
    
  3. Change to the source directory

    cd pound
    
  4. Read the additional instructions, which can be confusing and are incomplete:

    cat README-QUICK
    

    Here is what you need to do to finish building Pound:

  5. Bootstrap the project

    autoreconf -f -i -s
    
  6. Configure pound and install pound into its usual location (/usr/sbin):

    ./configure --prefix=/usr --sysconfdir=/etc
    

    To install pound into to /usr/local/sbin instead:

    ./configure --prefix=/usr --sysconfdir=/etc
    
  7. Build pound. This can take some time due to generation of Diffie-Hellman parameters:

    make
    

    If your copy of gcc is recent you will get a bunch of warnings which can be ignored:

    warning: ignoring return value of 'read'
    warning: ignoring return value of 'write'
    
  8. Install pound:

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