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

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的内核版本过低导致在编译时无法识别高版本中的一些宏定义··· 可以考虑升级内核版本

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?