首页 > Linux系统 > system > libmemcached编译 出错
2014
04-30

libmemcached编译 出错

编译错误:

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
最后编辑:
作者:admin
捐 赠如果您觉得这篇文章有用处,请支持作者!鼓励作者写出更好更多的文章!

留下一个回复