我的系统是 osx 10.8.4,gem install zookeeper -v '1.4.4'
总是出现以下错误:
src/hashtable/hashtable_itr.c:42:1: error: redefinition of a 'extern inline' function 'hashtable_iterator_key' is not supported in C99 mode
hashtable_iterator_key(struct hashtable_itr *i)
^
src/hashtable/hashtable_itr.h:36:1: note: previous definition is here
hashtable_iterator_key(struct hashtable_itr *i)
^
src/hashtable/hashtable_itr.c:46:1: error: redefinition of a 'extern inline' function 'hashtable_iterator_value' is not supported in C99 mode
hashtable_iterator_value(struct hashtable_itr *i)
^
src/hashtable/hashtable_itr.h:45:1: note: previous definition is here
hashtable_iterator_value(struct hashtable_itr *i)
^
有没有人碰巧知道原因?谢谢!
PS 这样做gem install zookeeper
可以毫无问题地安装 zookeeper 1.4.6。
更新:做CC=gcc-4.6 gem install zookeeper -v '1.4.4'
解决了我的问题