libmemcached编译 出错


Warning: Use of undefined constant g_prettify_esc_callback - assumed 'g_prettify_esc_callback' (this will throw an Error in a future version of PHP) in /home/wwwroot/dbci/wp-content/plugins/g-prettify/prettify.php on line 19

编译错误:

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
点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注