要安装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/
因此,我通过从下载手动安装了libeventhttp://www.monkey.org/~provos/libevent/并正在运行/从下载的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。
下载并提取libevent
后,您必须配置、构建和安装它。
只有这样,您才能返回到memcached
目录并重新运行其配置,指定libevent
的安装位置(如果它不在标准位置之一(如/lib
、/usr/lib
或/usr/local/lib
))。