安装memcached报错:If it's already installed, specify its path using --with-libevent=/dir/

一、安装memcached,执行./configure --prefix=/usr/local/memcached时候报错:

 

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

网上的解决办法:

方法一:找到libevent的安装路径,执行命令./configure --prefix=/usr/local/memcached  -with-libevent=libevent的安装路径;

方法二:因为libevent 这个包是系统默认安装的,没有安装相应的开发所用的头文件。 所以还要执行如下命令:

yum install libevent-devel 

 

采纳的解决办法是:方法二#yum install libevent-devel 

然后再执行编译命令即ok

解决办法参考:https://www.iteye.com/blog/71254468-1871036

posted on 2019-12-18 21:40  七星瓢虫6  阅读(1154)  评论(0编辑  收藏  举报