Home > Database > Redis > body text

How to solve the error when installing redis6.0.6 on Centos

王林
Release: 2023-05-29 10:01:05
forward
1025 people have browsed it

The error content is as follows

In file included from server.c:31:0:
server.c:4999:59: error: ‘struct redisServer’ has no member named ‘cluster’
             (server.cluster_enabled && nodeIsMaster(server.cluster->myself)));
。。。。。。
Copy after login

Cause:

In versions after redis 6.0.0, compiling redis needs to support the C11 feature, which was introduced in 4.9.
Centos7 default gcc version is 4.8.5, so you need to upgrade the gcc version.

Execute the following command

yum -y install gcc gcc-c++ make tcl
yum -y install centos-release-scl
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
scl enable devtoolset-9 bash
Copy after login

Perfect solution:

How to solve the error when installing redis6.0.6 on Centos

The above is the detailed content of How to solve the error when installing redis6.0.6 on Centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!