当前位置:论坛首页 > Linux面板 > 求助

【已完成】redis安装失败,急!

发表在 Linux面板2023-4-1 07:12 [复制链接] 12 2553

之前是已经成功装了redis6.2.7的,后来在软件中心选择切换版本至7.0.5后报错,然后我卸载重装7.0.5也失败,现在重装回6.2.7也失败,有没有大佬帮忙看下呀!急!
使用道具 举报 只看该作者 回复
发表于 2023-4-1 07:13:03 | 显示全部楼层
[code]MAKE hiredis
cd hiredis && make static
make[3]: Entering directory `/www/server/redis/deps/hiredis'
/opt/rh/devtoolset-7/root/usr/bin/gcc -std=c99 -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb -pedantic alloc.c
cc1: internal compiler error: Segmentation fault
symbol string index out of range
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[3]: *** [alloc.o] Error 1
make[3]: Leaving directory `/www/server/redis/deps/hiredis'
make[2]: *** [hiredis] Error 2
make[2]: Leaving directory `/www/server/redis/deps'
make[1]: [persist-settings] Error 2 (ignored)
CC adlist.o
cc1: internal compiler error: Segmentation fault
symbol string index out of range
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/www/server/redis/src'
make: *** [all] Error 2
使用道具 举报 回复 支持 反对
发表于 2023-4-1 09:45:17 | 显示全部楼层
您好,您那边使用的是什么Linux系统呢?这个是编译安装失败了,所以导致错误了。
使用道具 举报 回复 支持 反对
发表于 2023-4-1 10:53:05 | 显示全部楼层
谢花郎 发表于 2023-4-1 09:45
您好,您那边使用的是什么Linux系统呢?这个是编译安装失败了,所以导致错误了。 ...

发不了下面的几行代码,提示内容违规!
使用道具 举报 回复 支持 反对
发表于 2023-4-1 10:53:37 | 显示全部楼层
谢花郎 发表于 2023-4-1 09:45
您好,您那边使用的是什么Linux系统呢?这个是编译安装失败了,所以导致错误了。 ...

麻烦你啦!
使用道具 举报 回复 支持 反对
发表于 2023-4-1 10:58:08 | 显示全部楼层
谢花郎 发表于 2023-4-1 09:45
您好,您那边使用的是什么Linux系统呢?这个是编译安装失败了,所以导致错误了。 ...

使用道具 举报 回复 支持 反对
发表于 2023-4-1 14:47:22 | 显示全部楼层
现在是这个问题,可以帮忙看下吗
  1. /usr/include/stdint.h:9:26: error: no include path in which to search for stdint.h
  2. # include_next <stdint.h>
  3.                           ^
  4. In file included from alloc.c:32:0:
  5. alloc.h: In function ‘hi_calloc’:
  6. alloc.h:64:9: error: ‘SIZE_MAX’ undeclared (first use in this function); did you mean ‘__SIZE_MAX__’?
  7.      if (SIZE_MAX / size < nmemb)
  8.          ^~~~~~~~
  9.          __SIZE_MAX__
  10. alloc.h:64:9: note: each undeclared identifier is reported only once for each function it appears in
  11. make[3]: *** [alloc.o] Error 1
  12. make[3]: Leaving directory `/www/server/redis/deps/hiredis'
  13. make[2]: *** [hiredis] Error 2
  14. make[2]: /opt/rh/devtoolset-7/root/usr/bin/gcc -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -DLUA_USE_MKSTEMP  -O2    -c -o lcode.o lcode.c
  15. *** Waiting for unfinished jobs....
  16. In file included from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/limits.h:194:0,
  17.                  from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/syslimits.h:7,
  18.                  from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/limits.h:34,
  19.                  from luaconf.h:11,
  20.                  from lua.h:16,
  21.                  from lapi.c:16:
  22. /usr/include/limits.h:194:61: error: no include path in which to search for limits.h
  23. #include_next <limits.h>  /* recurse down to the real one */
  24.                                                              ^
  25. In file included from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/limits.h:194:0,
  26.                  from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/syslimits.h:7,
  27.                  from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/limits.h:34,
  28.                  from luaconf.h:11,
  29.                  from lua.h:16,
  30.                  from lcode.c:13:
  31. /usr/include/limits.h:194:61: error: no include path in which to search for limits.h
  32. #include_next <limits.h>  /* recurse down to the real one */
  33.                                                              ^
  34. make[3]: *** [lapi.o] Error 1
  35. make[3]: *** Waiting for unfinished jobs....
  36. make[3]: *** [lcode.o] Error 1
  37. make[3]: Leaving directory `/www/server/redis/deps/lua/src'
  38. make[2]: *** [lua] Error 2
  39. make[3]: Leaving directory `/www/server/redis/deps/linenoise'
  40. make[2]: Leaving directory `/www/server/redis/deps'
  41. make[1]: [persist-settings] Error 2 (ignored)
  42.     CC adlist.o
  43.     CC quicklist.o
  44.     CC ae.o
  45. In file included from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/stdint.h:9:0,
  46.                  from monotonic.h:15,
  47.                  from ae.h:36,
  48.                  from ae.c:33:
  49. /usr/include/stdint.h:9:26: error: no include path in which to search for stdint.h
  50. # include_next <stdint.h>
  51.                           ^
  52. In file included from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/stdint.h:9:0,
  53.                  from /usr/local/include/jemalloc/jemalloc.h:85,
  54.                  from zmalloc.h:50,
  55.                  from adlist.c:34:
  56. /usr/include/stdint.h:9:26: error: no include path in which to search for stdint.h
  57. # include_next <stdint.h>
  58.                           ^
  59. In file included from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/limits.h:194:0,
  60.                  from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/syslimits.h:7,
  61.                  from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/limits.h:34,
  62.                  from /usr/local/include/jemalloc/jemalloc.h:86,
  63.                  from zmalloc.h:50,
  64.                  from adlist.c:34:
  65. /usr/include/limits.h:194:61: error: no include path in which to search for limits.h
  66. #include_next <limits.h>  /* recurse down to the real one */
  67.                                                              ^
  68. In file included from ae.h:36:0,
  69.                  from ae.c:33:
  70. monotonic.h:22:9: error: unknown type name ‘uint64_t’
  71. typedef uint64_t monotime;
  72.          ^~~~~~~~
  73. monotonic.h:53:15: error: unknown type name ‘uint64_t’
  74. static inline uint64_t elapsedUs(monotime start_time) {
  75.                ^~~~~~~~
  76. monotonic.h:57:15: error: unknown type name ‘uint64_t’
  77. static inline uint64_t elapsedMs(monotime start_time) {
  78.                ^~~~~~~~
  79. make[1]: *** [adlist.o] Error 1
  80. make[1]: *** Waiting for unfinished jobs....
  81. In file included from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/stdint.h:9:0,
  82.                  from quicklist.h:31,
  83.                  from quicklist.c:33:
  84. /usr/include/stdint.h:9:26: error: no include path in which to search for stdint.h
  85. # include_next <stdint.h>
  86.                           ^
  87. In file included from quicklist.c:33:0:
  88. quicklist.h:95:5: error: #error unknown arch bits count
  89. #   error unknown arch bits count
  90.      ^~~~~
  91. In file included from ae.c:34:0:
  92. anet.h:76:42: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
  93. int anetSetSockMarkId(char *err, int fd, uint32_t id);
  94.                                           ^~~~~~~~
  95.                                           u_int32_t
  96. quicklist.h:111:23: error: ‘QL_FILL_BITS’ undeclared here (not in a function)
  97.      signed int fill : QL_FILL_BITS;       /* fill factor for individual nodes */
  98.                        ^~~~~~~~~~~~
  99. quicklist.h:111:16: error: bit-field ‘fill’ width not an integer constant
  100.      signed int fill : QL_FILL_BITS;       /* fill factor for individual nodes */
  101.                 ^~~~
  102. quicklist.h:112:29: error: ‘QL_COMP_BITS’ undeclared here (not in a function); did you mean ‘QL_FILL_BITS’?
  103.      unsigned int compress : QL_COMP_BITS; /* depth of end nodes not to compress;0=off */
  104.                              ^~~~~~~~~~~~
  105.                              QL_FILL_BITS
  106. quicklist.h:112:18: error: bit-field ‘compress’ width not an integer constant
  107.      unsigned int compress : QL_COMP_BITS; /* depth of end nodes not to compress;0=off */
  108.                   ^~~~~~~~
  109. quicklist.h:113:34: error: ‘QL_BM_BITS’ undeclared here (not in a function); did you mean ‘QL_COMP_BITS’?
  110.      unsigned int bookmark_count: QL_BM_BITS;
  111.                                   ^~~~~~~~~~
  112.                                   QL_COMP_BITS
  113. quicklist.h:113:18: error: bit-field ‘bookmark_count’ width not an integer constant
  114.      unsigned int bookmark_count: QL_BM_BITS;
  115.                   ^~~~~~~~~~~~~~
  116. In file included from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/limits.h:194:0,
  117.                  from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/syslimits.h:7,
  118.                  from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/limits.h:34,
  119.                  from /usr/local/include/jemalloc/jemalloc.h:86,
  120.                  from zmalloc.h:50,
  121.                  from quicklist.c:34:
  122. /usr/include/limits.h:194:61: error: no include path in which to search for limits.h
  123. #include_next <limits.h>  /* recurse down to the real one */
  124.                                                              ^
  125. In file included from quicklist.c:36:0:
  126. listpack.h:52:5: error: unknown type name ‘uint32_t’
  127.      uint32_t slen;
  128.      ^~~~~~~~
  129. listpack.h:60:68: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
  130. unsigned char *lpInsertString(unsigned char *lp, unsigned char *s, uint32_t slen,
  131.                                                                     ^~~~~~~~
  132.                                                                     u_int32_t
  133. listpack.h:64:63: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
  134. unsigned char *lpPrepend(unsigned char *lp, unsigned char *s, uint32_t slen);
  135.                                                                ^~~~~~~~
  136.                                                                u_int32_t
  137. listpack.h:66:62: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
  138. unsigned char *lpAppend(unsigned char *lp, unsigned char *s, uint32_t slen);
  139.                                                               ^~~~~~~~
  140.                                                               u_int32_t
  141. listpack.h:68:82: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
  142. unsigned char *lpReplace(unsigned char *lp, unsigned char **p, unsigned char *s, uint32_t slen);
  143.                                                                                   ^~~~~~~~
  144.                                                                                   u_int32_t
  145. listpack.h:77:78: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
  146. unsigned char *lpFind(unsigned char *lp, unsigned char *p, unsigned char *s, uint32_t slen, unsigned int skip);
  147.                                                                               ^~~~~~~~
  148.                                                                               u_int32_t
  149. listpack.h:89:60: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
  150. unsigned int lpCompare(unsigned char *p, unsigned char *s, uint32_t slen);
  151.                                                             ^~~~~~~~
  152.                                                             u_int32_t
  153. In file included from util.h:34:0,
  154.                  from quicklist.c:37:
  155. sds.h:52:5: error: unknown type name ‘uint8_t’
  156.      uint8_t len; /* used */
  157.      ^~~~~~~
  158. sds.h:53:5: error: unknown type name ‘uint8_t’
  159.      uint8_t alloc; /* excluding the header and null terminator */
  160.      ^~~~~~~
  161. sds.h:58:5: error: unknown type name ‘uint16_t’
  162.      uint16_t len; /* used */
  163.      ^~~~~~~~
  164. sds.h:59:5: error: unknown type name ‘uint16_t’
  165.      uint16_t alloc; /* excluding the header and null terminator */
  166.      ^~~~~~~~
  167. sds.h:64:5: error: unknown type name ‘uint32_t’
  168.      uint32_t len; /* used */
  169.      ^~~~~~~~
  170. sds.h:65:5: error: unknown type name ‘uint32_t’
  171.      uint32_t alloc; /* excluding the header and null terminator */
  172.      ^~~~~~~~
  173. sds.h:70:5: error: unknown type name ‘uint64_t’
  174.      uint64_t len; /* used */
  175.      ^~~~~~~~
  176. sds.h:71:5: error: unknown type name ‘uint64_t’
  177.      uint64_t alloc; /* excluding the header and null terminator */
  178.      ^~~~~~~~
  179. In file included from quicklist.c:37:0:
  180. util.h:66:1: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
  181. uint32_t digits10(uint64_t v);
  182. ^~~~~~~~
  183. u_int32_t
  184. util.h:66:19: error: unknown type name ‘uint64_t’; did you mean ‘u_int64_t’?
  185. uint32_t digits10(uint64_t v);
  186.                    ^~~~~~~~
  187.                    u_int64_t
  188. util.h:67:1: error: unknown type name ‘uint32_t’; did you mean ‘u_int32_t’?
  189. uint32_t sdigits10(int64_t v);
  190. ^~~~~~~~
  191. u_int32_t
  192. quicklist.c: In function ‘quicklistCreate’:
  193. quicklist.c:135:23: warning: overflow in implicit constant conversion [-Woverflow]
  194.      quicklist->fill = -2;
  195.                        ^
  196. quicklist.c: In function ‘quicklistPushHead’:
  197. quicklist.c:555:34: warning: implicit declaration of function ‘lpPrepend’; did you mean ‘lpPrev’? [-Wimplicit-function-declaration]
  198.          quicklist->head->entry = lpPrepend(quicklist->head->entry, value, sz);
  199.                                   ^~~~~~~~~
  200.                                   lpPrev
  201. quicklist.c:555:32: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  202.          quicklist->head->entry = lpPrepend(quicklist->head->entry, value, sz);
  203.                                 ^
  204. quicklist.c:559:21: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  205.          node->entry = lpPrepend(lpNew(0), value, sz);
  206.                      ^
  207. quicklist.c: In function ‘quicklistPushTail’:
  208. quicklist.c:582:34: warning: implicit declaration of function ‘lpAppend’ [-Wimplicit-function-declaration]
  209.          quicklist->tail->entry = lpAppend(quicklist->tail->entry, value, sz);
  210.                                   ^~~~~~~~
  211. quicklist.c:582:32: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  212.          quicklist->tail->entry = lpAppend(quicklist->tail->entry, value, sz);
  213.                                 ^
  214. quicklist.c:586:21: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  215.          node->entry = lpAppend(lpNew(0), value, sz);
  216.                      ^
  217. quicklist.c: In function ‘quicklistReplaceEntry’:
  218. quicklist.c:739:30: warning: implicit declaration of function ‘lpReplace’; did you mean ‘lpRepr’? [-Wimplicit-function-declaration]
  219.          entry->node->entry = lpReplace(entry->node->entry, &entry->zi, data, sz);
  220.                               ^~~~~~~~~
  221.                               lpRepr
  222. quicklist.c:739:28: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  223.          entry->node->entry = lpReplace(entry->node->entry, &entry->zi, data, sz);
  224.                             ^
  225. In file included from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/limits.h:194:0,
  226.                  from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/syslimits.h:7,
  227.                  from /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/limits.h:34,
  228.                  from /usr/local/include/jemalloc/jemalloc.h:86,
  229.                  from zmalloc.h:50,
  230.                  from ae.c:47:
  231. /usr/include/limits.h:194:61: error: no include path in which to search for limits.h
  232. #include_next <limits.h>  /* recurse down to the real one */
  233.                                                              ^
  234. quicklist.c: In function ‘_quicklistInsert’:
  235. quicklist.c:960:25: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  236.          new_node->entry = lpPrepend(lpNew(0), value, sz);
  237.                          ^
  238. In file included from ae_epoll.c:32:0,
  239.                  from ae.c:56:
  240. /usr/include/sys/epoll.h:83:3: error: unknown type name ‘uint32_t’
  241.    uint32_t u32;
  242.    ^~~~~~~~
  243. /usr/include/sys/epoll.h:84:3: error: unknown type name ‘uint64_t’
  244.    uint64_t u64;
  245.    ^~~~~~~~
  246. /usr/include/sys/epoll.h:89:3: error: unknown type name ‘uint32_t’
  247.    uint32_t events; /* Epoll events */
  248.    ^~~~~~~~
  249. quicklist.c:1010:23: warning: implicit declaration of function ‘lpInsertString’; did you mean ‘lpInsertInteger’? [-Wimplicit-function-declaration]
  250.          node->entry = lpInsertString(node->entry, value, sz, entry->zi, LP_AFTER, NULL);
  251.                        ^~~~~~~~~~~~~~
  252.                        lpInsertInteger
  253. quicklist.c:1010:21: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  254.          node->entry = lpInsertString(node->entry, value, sz, entry->zi, LP_AFTER, NULL);
  255.                      ^
  256. quicklist.c:1017:21: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  257.          node->entry = lpInsertString(node->entry, value, sz, entry->zi, LP_BEFORE, NULL);
  258.                      ^
  259. quicklist.c:1027:25: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  260.          new_node->entry = lpPrepend(new_node->entry, value, sz);
  261.                          ^
  262. quicklist.c:1038:25: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  263.          new_node->entry = lpAppend(new_node->entry, value, sz);
  264.                          ^
  265. quicklist.c:1049:25: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  266.          new_node->entry = lpPrepend(lpNew(0), value, sz);
  267.                          ^
  268. quicklist.c:1060:29: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  269.              new_node->entry = lpPrepend(new_node->entry, value, sz);
  270.                              ^
  271. quicklist.c:1062:29: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  272.              new_node->entry = lpAppend(new_node->entry, value, sz);
  273.                              ^
  274. quicklist.c: In function ‘quicklistCompare’:
  275. quicklist.c:1184:12: warning: implicit declaration of function ‘lpCompare’ [-Wimplicit-function-declaration]
  276.      return lpCompare(entry->zi, p2, p2_len);
  277.             ^~~~~~~~~
  278. make[1]: *** [ae.o] Error 1
  279. make[1]: *** [quicklist.o] Error 1
  280. make[1]: Leaving directory `/www/server/redis/src'
  281. make: *** [all] Error 2
复制代码
使用道具 举报 回复 支持 反对
发表于 2023-4-1 15:32:28 | 显示全部楼层

方便提供下机器吗?这边具体可以看下能否解决安装
使用道具 举报 回复 支持 反对
发表于 2023-4-1 15:53:56 | 显示全部楼层
谢花郎 发表于 2023-4-1 15:32
方便提供下机器吗?这边具体可以看下能否解决安装

你好 可以的 不过我这个现在处于生产环境当中 会有影响吗 现在对外服务
使用道具 举报 回复 支持 反对
发表于 2023-4-1 16:07:22 | 显示全部楼层
让爱变成回忆 发表于 2023-4-1 15:53
你好 可以的 不过我这个现在处于生产环境当中 会有影响吗 现在对外服务

编译安装可能会有占用服务器资源的,其他的不影响
使用道具 举报 回复 支持 反对
发表于 2023-4-1 16:11:40 | 显示全部楼层
谢花郎 发表于 2023-4-1 16:07
编译安装可能会有占用服务器资源的,其他的不影响

你好 请问怎么联系你呢 非常感谢
使用道具 举报 回复 支持 反对
发表于 2023-4-1 16:15:09 | 显示全部楼层
谢花郎 发表于 2023-4-1 16:07
编译安装可能会有占用服务器资源的,其他的不影响

已经私信给你啦!拜托啦
使用道具 举报 回复 支持 反对
发表于 2023-10-12 12:20:18 | 显示全部楼层
请问解决了吗?如未解决,请重新发帖咨询,感谢配合
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表