memcached基础1

2022-06-26 21:12:09 浏览数 (1)

解压

root@h101 src# ls

memcached-1.4.24.tar.gz

root@h101 src# tar -zxvf memcached-1.4.24.tar.gz

memcached-1.4.24/

memcached-1.4.24/sasl_defs.c

memcached-1.4.24/solaris_priv.c

memcached-1.4.24/AUTHORS

memcached-1.4.24/config.guess

...

...

memcached-1.4.24/Makefile.am

memcached-1.4.24/COPYING

memcached-1.4.24/cache.c

memcached-1.4.24/Makefile.in

root@h101 src# ls

memcached-1.4.24 memcached-1.4.24.tar.gz

root@h101 src#

安装

此时直接配置会出错

root@h101 src# cd memcached-1.4.24

root@h101 memcached-1.4.24# ls

aclocal.m4 compile daemon.c items.h memcached_dtrace.d protocol_binary.h slabs.h timedrun.c

assoc.c config.guess depcomp jenkins_hash.c memcached.h README.md solaris_priv.c trace.h

assoc.h config.h.in doc jenkins_hash.h memcached.spec sasl_defs.c stats.c util.c

AUTHORS config.sub hash.c m4 missing sasl_defs.h stats.h util.h

cache.c configure hash.h Makefile.am murmur3_hash.c scripts t version.m4

cache.h configure.ac install-sh Makefile.in murmur3_hash.h sizes.c testapp.c

ChangeLog COPYING items.c memcached.c NEWS slabs.c thread.c

root@h101 memcached-1.4.24# ./configure

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 whether make supports nested variables... 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 whether gcc understands -c and -o together... yes

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 clang 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 sasl/sasl.h usability... no

checking sasl/sasl.h presence... no

checking for sasl/sasl.h... no

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/

代码语言:txt复制
  If it's already installed, specify its path using --with-libevent=/dir/

root@h101 memcached-1.4.24#

0 人点赞