諾呉
2017-07-26 11:52
采纳率: 70.6%
浏览 1.1k

RediSearch 在Redhat上无法成功编译

按照RediSearch的官网上的安装步骤,在编译时总是报错;
RediSearch/RediSearch/src/index.h:123:7: warning: no newline at end of file
RediSearch/RediSearch/src/index.c: At top level:
RediSearch/RediSearch/src/index.h:55: warning: 'UI_Read' declared inline after being called
RediSearch/RediSearch/src/index.h:55: warning: previous declaration of 'UI_Read' was here
RediSearch/RediSearch/src/index.c: In function UI_Read':
RediSearch/RediSearch/src/index.c:60: error:
__UINT32_MAX__' undeclared (first use in this function)
RediSearch/RediSearch/src/index.c:60: error: (Each undeclared identifier is reported only once
RediSearch/RediSearch/src/index.c:60: error: for each function it appears in.)
RediSearch/RediSearch/src/index.c: In function UI_SkipTo':
RediSearch/RediSearch/src/index.c:149: error:
__UINT32_MAX__' undeclared (first use in this function)

人为修改了源代码为“__UINT32_MAX__”加入定义后,就报

index_result.c: 在函数‘__newAggregateResult’中:
index_result.c:17: 错误:初始值设定项里有未知的字段‘agg’
index_result.c:20: 警告:初始值设定周围缺少花括号
index_result.c:20: 警告:(在‘(anonymous).’的初始化附近)
index_result.c: 在函数‘NewTokenRecord’中:
index_result.c:42: 错误:初始值设定项里有未知的字段‘term’
index_result.c:44: 错误:用‘RSTermRecord’初始化‘unsigned int’时类型不兼容
在文件层:
cc1: 警告:无法识别的命令行选项“-Wno-unused-result

请教一下RediSearch的编译环境的要求。。 谢谢

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • 諾呉 2017-08-01 04:05
    已采纳

    之前安装时遇到的问题 是由于linux内核版本过低。 linux的内核版本过低导致在编译时无法识别高版本中的一些宏定义··· 可以考虑升级内核版本

    点赞 打赏 评论
  • devmiao 2017-07-26 16:31
    点赞 打赏 评论
  • devmiao 2017-07-26 16:31
    点赞 打赏 评论

相关推荐