pgbouncer 源码编译安装

pgbouncer 是一个轻量级的postgresql 数据库连接池,也可以用来做greenplum 数据库的前端连接池。

今天试了一下下载源码进行编译安装,过程记录一下:

1. pgbouncer 依赖的组件:

2.通过yum 安装相关组件:

  yum install openssl

  yum install openssl-devel

  yum install libevent-devel

  yum install python-docutils

  yum install libtool

  yum install automake

  yum install autoconf

3. 通过git 下载源码及编译安装

$ git clone https://github.com/pgbouncer/pgbouncer.git
$ cd pgbouncer
$ git submodule init
$ git submodule update
$ ./autogen.sh
$ ./configure --prefix=/usr/local/pgbouncer
$ make
$ make install


一定要安装这些依赖的组件,否则编译会出错。

原文地址:https://www.cnblogs.com/yhnxuhbgx/p/8228076.html