linux mint13安装memcached查找依赖libevent失败

CPU/显卡/打印机/USB设备等硬件问题
回复
eternal403
帖子: 6
注册时间: 2008-03-12 19:46

linux mint13安装memcached查找依赖libevent失败

#1

帖子 eternal403 » 2013-05-02 10:09

我笔记本使用的是linux mint13 64位系统,大致对应的ubuntu版本是12的样子,具体多少我记不清了。

1. 通过源代码方式安装安装了libevent

代码: 全选

tar zxvf libevent-2.0.21.tar.gz
cd libevent-2.0.21
./configure --prefix=/usr/local
make
make install
2. 查看安装是否成功

代码: 全选

ls -al /usr/lib | grep libevent

lrwxrwxrwx   1 root    root           21 Dec 25 16:19 libevent-2.0.so.5 -> libevent-2.0.so.5.1.4
-rw-r--r--   1 root    root       281504 Dec 12  2011 libevent-2.0.so.5.1.4
发现,在/usr/lib下成功安装,由于是64为系统,在/usr下面有两个lib文件夹, lib和lib32

使用

代码: 全选

find / -name libevent-2.0.so.5
也只发现/usr/lib下有libevent-2.0.so.5。

3.安装memcached

代码: 全选

tar -zxf memcached-1.4.5.tar.gz
cd memcached-1.4.5/
./configure --prefix=/usr/local --with-libevent=/usr/local
这个时候报错

代码: 全选

checking for libevent directory... configure: 
error: libevent is required.  You can get it from 
If it's already installed, specify its path using --with-libevent=/dir/
这里我已经安装了 libevent了,位置是/usr/lib,估计是没有找到,所以,我调整了下参数

代码: 全选

./configure --prefix=/usr/local --with-libevent=/usr/lib
但是仍然报这个错。

4.
我在想,64为系统,估计是到默认的 /usr/lib下去找,应该不会跑到 /usr/lib32下去找。
另外,我是否需要将 libevent-2.0.so.5做一个链接到/lib下
我查看网上的帖子,基本都是说64位系统,做一个链接到 lib64里面取就ok了,但是不知道mint或是ubuntu基于什么原因,现在只有lib和lib32两个文件夹了。
下面我贴上全部的日志,麻烦各位大哥指导下。
另外:我注意到,日志开头有

代码: 全选

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
是什么原因? 谢谢

以下是所有的日志信息:

代码: 全选

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for icc in use... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes 
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether __SUNPRO_C is declared... no
checking for gcc option to accept ISO C99... -std=gnu99
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking for gcov... /usr/bin/gcov
checking for main in -lgcov... yes
checking for library containing clock_gettime... -lrt
checking for library containing socket... none required
checking for library containing gethostbyname... none required
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/
回复