libmemcached编译 出错

libmemcached编译 出错

转自

http://blog.csdn.net/flyrainer/article/details/7742368


编译错误:
libmemcached/auto.cc: In function 'memcached_return_t text_incr_decr(memcached_server_st*, bool, const char*, size_t, uint64_t, bool)':
libmemcached/auto.cc:73: error: expected `)' before 'PRIu64'

In file included from ./libmemcached/common.h:72,
                 from ./libmemcached/csl/common.h:40,
                 from libmemcached/csl/context.cc:38:
./libmemcached-1.0/memcached.h:46:27: error: tr1/cinttypes: No such file or directory

原因 貌似是gcc版本过低了
对策:libmemcached-1.0.2 版本以上升级编译器版本
# yum install gcc44 gcc44-c++ libstdc++44-devel

# export CC=/usr/bin/gcc44
# export CXX=/usr/bin/g++44
# ./configure

你可能感兴趣的:(libmemcached编译 出错)