无法安装 pgbouncer

无法安装 pgbouncer

我正在尝试使用 RHEL 7.4 上的源代码安装 pgbouncer。我正在关注本教程

运行时./configure --prefix=/usr/local/ --with-libevent=/usr/lib64,我收到以下错误:

checking for libevent... configure: error: not found, cannot proceed

然而,跑步rpm -qa|grep libevent会给

libevent-2.0.21-4.el7.x86_64

ll /usr/lib64 |grep libevent给出

lrwxrwxrwx. 1 root root 21 Aug 28 2017 libevent-2.0.so.5 -> libevent-2.0.so.5.1.9 -rwxr-xr-x. 1 root root 297816 Jan 26 2014 libevent-2.0.so.5.1.9 lrwxrwxrwx. 1 root root 26 Aug 28 2017 libevent_core-2.0.so.5 -> libevent_core-2.0.so.5.1.9 -rwxr-xr-x. 1 root root 179800 Jan 26 2014 libevent_core-2.0.so.5.1.9 lrwxrwxrwx. 1 root root 27 Aug 28 2017 libevent_extra-2.0.so.5 -> libevent_extra-2.0.so.5.1.9 -rwxr-xr-x. 1 root root 133864 Jan 26 2014 libevent_extra-2.0.so.5.1.9 lrwxrwxrwx. 1 root root 29 Aug 28 2017 libevent_openssl-2.0.so.5 -> libevent_openssl-2.0.so.5.1.9 -rwxr-xr-x. 1 root root 24464 Jan 26 2014 libevent_openssl-2.0.so.5.1.9 lrwxrwxrwx. 1 root root 30 Aug 28 2017 libevent_pthreads-2.0.so.5 -> libevent_pthreads-2.0.so.5.1.9 -rwxr-xr-x. 1 root root 11200 Jan 26 2014 libevent_pthreads-2.0.so.5.1.9

无法找出问题所在。

答案1

检查 libevent...配置:错误:未找到

libevent-2.0.21-4.el7.x86_64

那只是运行时文件。您缺少使用 libevent 编译应用程序所需的文件 →# yum install libevent-devel

提供/usr/{lib64/[libs].so, /include/{files.h, event/files.h, event2/files.h}}

相关内容