暂无图片
No package 'libevent' found
我来答
分享
暂无图片 匿名用户
No package 'libevent' found


[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 不兼容吗?

我来答
添加附件
收藏
分享
问题补充
2条回答
默认
最新
彭冲

需要安装开发包:libevent-devel

暂无图片 评论
暂无图片 有用 3
打赏 0
R
RC2025

The error message "No package 'libevent' found" typically occurs when you're trying to compile or install software that requires the libevent library, but it is not installed on your system. Here's how you can resolve it based on your operating system:

On Ubuntu/Debian-based systems:

  1. Open a terminal and run the following command to install the libevent development package:

    bashCopy Code

    sudo apt-get update sudo apt-get install libevent-dev
    复制

On Fedora/RHEL/CentOS-based systems:

  1. Use the dnf or yum package manager to install the library:

    bashCopy Code

    sudo dnf install libevent-devel
    复制
    Or for older versions of CentOS/RHEL:

    bashCopy Code

    sudo yum install libevent-devel
    复制

On macOS (using Homebrew):

  1. If you don't have Homebrew installed, install it first. Otherwise, you can directly install libevent using the following:

    bashCopy Code

    brew install libevent
    复制

On Windows:

  1. You may need to manually download and install libevent for Windows. Alternatively, if you are using a package manager like MSYS2 or vcpkg, you can install libevent through them:

    For MSYS2:

    bashCopy Code

    pacman -S mingw-w64-x86_64-libevent
    复制

    For vcpkg:

    bashCopy Code

    vcpkg install libevent
    复制

After installing the required package, you can try the installation or compilation again, and the error should no longer appear.

暂无图片 评论
暂无图片 有用 0
打赏 0
回答交流
Markdown


请输入正文
提交
相关推荐
PostgreSQL pg_rman 全备备份集数据丢失
回答 8
建议你可以尝试以下步骤:可以尝试升级到最新版本,看看是否能够解决问题。如果升级pgrman后仍然存在问题,那么你可以考虑使用其他备份工具进行备份和恢复,比如pgdumpall和pgrestore等。如
postgresql中的一个表内的多个唯一键约束,是共同作用还是某一个满足就触发?
回答 1
你要问的是一个键是 abc三列组成一个唯一这种吗?这种是共同的。如果说a唯一 b也是唯一   两个,那么理论一般没人这样用。但是如果这样,是分别触发。
pg_rman备份恢复后启动数据库报错,下面是演示操作
回答 1
使用源码编译pg14.2源码编译pgrman1.3.14在centos7.6未能复现问题。恢复过程:[postgres@pg]$pgrmanrestore\>pgdata/opt/pgdatat
生产中,在一个PG实例中,一般是创建一个数据库,再创建多个模式方式,或是创建多个数据库,数据库之间再通过DBLINK方式访问,哪种多一些 ?
回答 1
直接授权就能访问了啊
postgreSQL 热备份有什么解决方案吗?
回答 5
pgprobackuppgbackrest都是基于pgbasebackup,一般不推荐直接使用pgbasebackup
PostgreSQL citus和pgpool有什么区别?
回答 1
已采纳
PgpoolII属于池化的一种中间件,可以为PostgreSQL提供负载均衡,自动故障转移等功能,通常结合pg的主从架构来使用。但pgpoolII支持的多主同写性能较差。Citus面向高速简单事务,高
08006: connection to client lost
回答 2
"2.客户端发起一个查询到数据库服务器(比如长查询)"如果就是一个长查询,如何让这个查询执行下去,而不是执行到一半就中断掉?
plan-time 大于exec-time的pg问题
回答 2
耗时不高数据量也不大,用提升性能
pg一个数据库中究竟能创建多少个对象呢?
回答 3
这个问题,在PostgreSQL文档中有详细的说明,请参考 PostgreSQL限制
pg_rman-1.3.9-1.pg12.rhel7.x86_64 求一个
回答 1
上传附件:pgrman1.3.91.pg12.rhel7.x8664.rpm