pgbouncer 是一个轻量级的postgresql 数据库链接池,也能够用来作greenplum 数据库的前端链接池。前端
今天试了一下下载源码进行编译安装,过程记录一下:python
1. pgbouncer 依赖的组件:git
- GNU Make 3.81+
- libevent 2.0
- (optional) OpenSSL 1.0.1 for TLS support.
- (optional) c-ares as alternative to libevent’s evdns.
2.经过yum 安装相关组件:github
yum install opensslsql
yum install openssl-devel数据库
yum install libevent-develpost
yum install python-docutilsspa
yum install libtoolpostgresql
yum install automakecode
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
必定要安装这些依赖的组件,不然编译会出错。