
[root@gbase8c_1 mnt]# rpm -aq|grep -i libevent
libevent-2.0.21-4.el7.x86_64
/home/postgres/libevent
[postgres@gbase8c_1 libevent]$ ll
total 4
drwxr-xr-x 2 root root 29 Mar 18 16:16 bin
drwxr-xr-x 3 root root 97 Mar 18 16:16 include
drwxr-xr-x 3 root root 4096 Mar 18 16:16 lib
/soft/pgbouncer-1.12.0 执行./configure时候提示libevent不存在,但是上面我已经安装好了
checking whether strerror_r returns char *... yes
checking for integer enc/dec functions... not found
checking for library containing clock_gettime... none required
checking for library containing getsockname... none required
checking for library containing gethostbyname... none required
checking for library containing hstrerror... none required
checking for lstat... yes
checking for LIBEVENT... no
configure: error: Package requirements (libevent) were not met:
No package 'libevent' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBEVENT_CFLAGS
and LIBEVENT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
pg--12版本
难道pgbouncer ,libevent 的版本和pg-12 不兼容吗?