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个回答

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

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问