gpt4 book ai didi

unix - 安装memcached - 找不到libevent

转载 作者:行者123 更新时间:2023-12-02 21:27:06 29 4
gpt4 key购买 nike

要安装 memcached,我运行:

./configure

来自 memcached 服务器位置,但我收到错误:

checking for libevent directory... configure: error: libevent is required.  You can get it from http://www.monkey.org/~provos/libevent/

If it's already installed, specify its path using --with-libevent=/dir/

所以我通过从http://www.monkey.org/~provos/libevent/下载来手动安装libevent并从下载的 libevent 文件夹中运行 ./configure

但是当我尝试命令时:

./configure  --with-libevent=/export/home/me/libevent-2.0.21-stable/

我收到同样的错误:

checking for libevent directory... configure: error: libevent is required.  You can get it from http://www.monkey.org/~provos/libevent/

If it's already installed, specify its path using --with-libevent=/dir/

如何检查 libevent 的安装位置?我指定的路径是否正确?

当我从防火墙后面安装 memcached 时,我需要手动安装 libevent。

最佳答案

下载并解压libevent后,您必须配置、构建并安装它。

只有这样,您才能返回到 memcached 目录并重新运行其配置,指定您安装 libevent 的位置(如果它不在标准位置之一(例如如 /lib/usr/lib/usr/local/lib)。

关于unix - 安装memcached - 找不到libevent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23317867/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com