centos7.7 redis 安装失败
本帖最后由 kekeones 于 2020-5-12 16:48 编辑腾讯云
if (server.cluster_enabled) server_mode = " ";
^
server.c:4841:20: error: ‘struct redisServer’ has no member named ‘sentinel_mode’
else if (server.sentinel_mode) server_mode = " ";
^
server.c:4845:15: error: ‘struct redisServer’ has no member named ‘bindaddr_count’
server.bindaddr_count ? server.bindaddr : "*",
^
server.c:4845:39: error: ‘struct redisServer’ has no member named ‘bindaddr’
server.bindaddr_count ? server.bindaddr : "*",
^
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, 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: *** Error 1
make: Leaving directory `/usr/local/src/lnmp/src/redis-6.0.1/src'
make: *** 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
稍候我会做相关的调整 升级最新gcc的还是一样的错误。 kekeones 发表于 2020-5-13 00:27
升级最新gcc的还是一样的错误。
下载最新的脚本重新安装就可以了
页:
[1]