VPS侦探论坛

 找回密码
 注册
查看: 3699|回复: 3

centos7.7 redis 安装失败

[复制链接]
发表于 2020-5-12 16:42:54 | 显示全部楼层 |阅读模式

本帖最后由 kekeones 于 2020-5-12 16:48 编辑

腾讯云




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-5-12 20:26:52 | 显示全部楼层


    if (server.cluster_enabled) server_mode = " [cluster]";
               ^
server.c:4841:20: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
     else if (server.sentinel_mode) server_mode = " [sentinel]";
                    ^
server.c:4845:15: error: ‘struct redisServer’ has no member named ‘bindaddr_count’
         server.bindaddr_count ? server.bindaddr[0] : "*",
               ^
server.c:4845:39: error: ‘struct redisServer’ has no member named ‘bindaddr’
         server.bindaddr_count ? server.bindaddr[0] : "*",
                                       ^
server.c:4846:15: error: ‘struct redisServer’ has no member named ‘port’
         server.port ? server.port : server.tls_port,
               ^
server.c:4846:29: error: ‘struct redisServer’ has no member named ‘port’
         server.port ? server.port : server.tls_port,
                             ^
server.c:4846:43: error: ‘struct redisServer’ has no member named ‘tls_port’
         server.port ? server.port : server.tls_port,
                                           ^
server.c: In function ‘redisIsSupervised’:
server.c:4895:19: error: ‘struct redisServer’ has no member named ‘supervised_mode’
             server.supervised_mode = SUPERVISED_SYSTEMD;
                   ^
server.c: In function ‘iAmMaster’:
server.c:4912:21: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
     return ((!server.cluster_enabled && server.masterhost == NULL) ||
                     ^
server.c:4912:47: error: ‘struct redisServer’ has no member named ‘masterhost’
     return ((!server.cluster_enabled && server.masterhost == NULL) ||
                                               ^
server.c:4913:20: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
             (server.cluster_enabled && nodeIsMaster(server.cluster->myself)));
                    ^
In file included from server.c:31:0:
server.c:4913:59: error: ‘struct redisServer’ has no member named ‘cluster’
             (server.cluster_enabled && nodeIsMaster(server.cluster->myself)));
                                                           ^
cluster.h:58:27: note: in definition of macro ‘nodeIsMaster’
#define nodeIsMaster(n) ((n)->flags & CLUSTER_NODE_MASTER)
                           ^
server.c: In function ‘main’:
server.c:4960:11: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
     server.sentinel_mode = checkForSentinelMode(argc,argv);
           ^
server.c:4977:15: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
     if (server.sentinel_mode) {
               ^
server.c:5044:19: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
         if (server.sentinel_mode && configfile && *configfile == '-') {
                   ^
server.c:5066:168: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
         serverLog(LL_WARNING, "Warning: no config file specified, using the default config. In order to specify a config file use %s /path/to/%s.conf", argv[0], server.sentinel_mode ? "sentinel" : "redis");
                                                                                                                                                                        ^
server.c:5071:11: error: ‘struct redisServer’ has no member named ‘supervised’
     server.supervised = redisIsSupervised(server.supervised_mode);
           ^
server.c:5071:49: error: ‘struct redisServer’ has no member named ‘supervised_mode’
     server.supervised = redisIsSupervised(server.supervised_mode);
                                                 ^
server.c:5072:28: error: ‘struct redisServer’ has no member named ‘daemonize’
     int background = server.daemonize && !server.supervised;
                            ^
server.c:5072:49: error: ‘struct redisServer’ has no member named ‘supervised’
     int background = server.daemonize && !server.supervised;
                                                 ^
server.c:5076:29: error: ‘struct redisServer’ has no member named ‘pidfile’
     if (background || server.pidfile) createPidFile();
                             ^
server.c:5081:16: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
     if (!server.sentinel_mode) {
                ^
server.c:5091:19: error: ‘struct redisServer’ has no member named ‘cluster_enabled’
         if (server.cluster_enabled) {
                   ^
server.c:5099:19: error: ‘struct redisServer’ has no member named ‘ipfd_count’
         if (server.ipfd_count > 0 || server.tlsfd_count > 0)
                   ^
server.c:5099:44: error: ‘struct redisServer’ has no member named ‘tlsfd_count’
         if (server.ipfd_count > 0 || server.tlsfd_count > 0)
                                            ^
server.c:5101:19: error: ‘struct redisServer’ has no member named ‘sofd’
         if (server.sofd > 0)
                   ^
server.c:5102:94: error: ‘struct redisServer’ has no member named ‘unixsocket’
             serverLog(LL_NOTICE,"The server is now ready to accept connections at %s", server.unixsocket);
                                                                                              ^
server.c:5103:19: error: ‘struct redisServer’ has no member named ‘supervised_mode’
         if (server.supervised_mode == SUPERVISED_SYSTEMD) {
                   ^
server.c:5104:24: error: ‘struct redisServer’ has no member named ‘masterhost’
             if (!server.masterhost) {
                        ^
server.c:5117:15: error: ‘struct redisServer’ has no member named ‘maxmemory’
     if (server.maxmemory > 0 && server.maxmemory < 1024*1024) {
               ^
server.c:5117:39: error: ‘struct redisServer’ has no member named ‘maxmemory’
     if (server.maxmemory > 0 && server.maxmemory < 1024*1024) {
                                       ^
server.c:5118:176: error: ‘struct redisServer’ has no member named ‘maxmemory’
         serverLog(LL_WARNING,"WARNING: You specified a maxmemory value that is less than 1MB (current value is %llu bytes). Are you sure this is what you really want?", server.maxmemory);
                                                                                                                                                                                ^
server.c: In function ‘hasActiveChildProcess’:
server.c:1476:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
server.c: In function ‘allPersistenceDisabled’:
server.c:1482:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
server.c: In function ‘writeCommandsDeniedByDiskError’:
server.c:3747:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
server.c: In function ‘iAmMaster’:
server.c:4914:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[1]: *** [server.o] Error 1
make[1]: Leaving directory `/usr/local/src/lnmp/src/redis-6.0.1/src'
make: *** [install] Error 2

redis 6.0有些新特性,需要使用gcc高于5.3的版本,gcc版本低于5.3就会报上面错误
如果对redis版本没要求的话可以 修改include/version.sh 将 Redis_Stable_Ver='redis-6.0.1' 改成 Redis_Stable_Ver='redis-5.0.8'
也可以升级gcc后安装,升级gcc教程:https://www.vpser.net/manage/centos-6-upgrade-gcc.html
稍候我会做相关的调整
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-5-13 00:27:47 | 显示全部楼层

升级最新gcc的还是一样的错误。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-5-13 14:21:29 | 显示全部楼层



kekeones 发表于 2020-5-13 00:27
升级最新gcc的还是一样的错误。

下载最新的脚本重新安装就可以了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-21 01:44 , Processed in 0.027354 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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