安装memcached - 找不到libevent

blu*_*sky 2 unix memcached libevent

要安装 memcached,我运行:

./configure
Run Code Online (Sandbox Code Playgroud)

从 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/
Run Code Online (Sandbox Code Playgroud)

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

但是当我尝试命令时:

./configure  --with-libevent=/export/home/me/libevent-2.0.21-stable/
Run Code Online (Sandbox Code Playgroud)

我收到同样的错误:

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/
Run Code Online (Sandbox Code Playgroud)

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

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

Jon*_*ler 5

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

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

  • 补充说明:配置、构建和安装 `libevent` 的命令可以在其 [github 页面](https://github.com/libevent/libevent#autoconf) 中找到 (3认同)