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

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

 

问题: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

相关文章:

  • 2021-05-16
  • 2022-12-23
  • 2021-04-05
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
猜你喜欢
  • 2021-10-11
  • 2021-08-06
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2021-06-20
  • 2021-07-12
相关资源
相似解决方案