1. 通过源代码方式安装安装了libevent
代码: 全选
tar zxvf libevent-2.0.21.tar.gz
cd libevent-2.0.21
./configure --prefix=/usr/local
make
make install
代码: 全选
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
使用
代码: 全选
find / -name 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/
代码: 全选
./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/