memcached make: *** No targets specified and no makefile found. Stop.

在安装memcached其间出现以下错误

memcached make: *** No targets specified and no makefile found.  Stop.

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时增加了版本号导致的,所以注意在安装libevent时不要增加版本号

rpm -qa|grep libevent
查看系统是否带有该安装软件,如果有执行命令:
rpm -e libevent-1.4.13-4.el6.x86_64 --nodeps(由于系统自带的版本旧,忽略依赖删除)
2. 安装libevent命令:
tar zxvf libevent-2.0.21-stable.tar.gz
  cd libevent-2.0.21-stable
  ./configure --prefix=/usr/local/libevent
  make
  make install
至此libevent安装完毕;

你可能感兴趣的:(架构设计)