安装 memcached - 找不到 libevent

Posted

技术标签:

【中文标题】安装 memcached - 找不到 libevent【英文标题】:Installation of memcached - unable to find libevent 【发布时间】:2014-04-26 23:59:29 【问题描述】:

要安装 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 文件夹运行 ./configure 手动安装了 libevent

但是当我尝试命令时:

./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。

【问题讨论】:

【参考方案1】:

下载并解压libevent后,您必须对其进行配置、构建和安装。

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

【讨论】:

补充说明:配置、构建和安装libevent 的命令可以在其github page 找到

以上是关于安装 memcached - 找不到 libevent的主要内容,如果未能解决你的问题,请参考以下文章

关于执行memcached报错问题

如何在Linux下安装Memcached

Memcache的安装与启动

linux安装memcached及memcache扩展

memcached使用

centos安装libevent memcached