编程知识 cdmana.com

Error in installing redis6.0 in centos7.0

In the installation Redis6.0 In the process , When executed make On command , There are two possible problems , The solution can refer to the following description :

problem 1:cc adlist.o /bin/sh:1:cc:not found error

reason : The current system is not installed gcc Environmental Science .

resolvent : Execute on the command line   yum install gcc-c++.

problem 2: make[1]: *** [server.o] Error 1   

reason :gcc Version is too low ,yum Installed gcc yes 4.8.5 Of , So it needs to be upgraded gcc.

resolvent : Execute the following three commands from the command line
yum -y install centos-release-scl
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
scl enable devtoolset-9 bash

版权声明
本文为[UAA]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201225144244879Q.html

Scroll to Top