Obtain a copy of the latest PgBouncer source code to complete the installation. At the time of writing this book, the latest version is 1.7.2, released on February 26, 2016.
In order to compile the source code properly, we need the PostgreSQL development libraries in addition to the normally installed system binaries. For example, to build on a Debian- or Ubuntu-based system, we will need to install libraries by executing this at the command line:
sudo apt-get install postgresql-server-dev-9.6
We also need the libevent development libraries. Install these from the distribution package repository on a Debian- or Ubuntu-based system with this command:
sudo apt-get install libevent-dev
Then, we simply need a root-capable user ...