暂无图片
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


请输入正文
提交
相关推荐
PostgREST 基于账户的行及权限控制有参考资料吗?
回答 1
https://blog.csdn.net/songyundong1993/article/details/131771107
怎么用一个数学指标来描述postgreSQL数据库中的表,哪个字段适合作为索引?
回答 1
不考虑业务场景,那一定是区分度。非常直观的一个数学指标
pg中逻辑复制,主从数据是否一致,如何校验,有没有类似mysql中的pt-table-check
回答 1
第一个问题:试试pgcomparator第二个问题:可以调整logicaldecodingworkmem参数以及订阅上启用streaming特性
postgreSQL 有没有像oracle的dba_objects这个数据字典的视图?
回答 1
可以用pgtables\pgindexes\pgviews
postgreSQL synchronous_standby_names = 'first 1(s2,s3)' 这个s2和s3是什么名字?
回答 1
设置FIRST3(s1,s2,s3,s4)将导致每次提交都等待来自三台较高优先级的后备机的答复,这三台后备机将从后备服务器s1、s2、s3以及s4中选出。在该列表中出现较早的后备服务器将被给予较高的优
pg中的物理复制,备库的回放进程是哪个?是否支持并行回放??
回答 1
在PostgreSQL中,物理复制是一种流复制技术,可以通过从实例级复制出一个与主库一模一样的备库。备库的回放进程是由主库控制的,主库会将WAL文件发送到备库,然后备库会重放这些WAL文件以恢复数据。
postgresql vacuum问题
回答 2
推论并不成立,简单的说状态0是可以被立即重用。其它的值也可以被重用,但不是立即。
postgresql 能固定执行计划吗?
回答 1
pghintplan插件支持类似oraclehint的功能
postgresql index问题,有什么好方法debug和调整?
回答 1
把函数定义发出来看看
pgbackrest的问题
回答 2
最新版pgbackrest支持pg9.0以上版本。官方未提供rpm包。需要自行编译,编译时自动匹配版本,可参见源码:https://github.com/pgbackrest/pgbackrest/t