如果Linux安装Redis编译make[1]: *** [server.o] Error 1 make[1]: Leaving directory `/other/redis-6.0.15/src‘

2021/9/26 19:13:10

本文主要是介绍如果Linux安装Redis编译make[1]: *** [server.o] Error 1 make[1]: Leaving directory `/other/redis-6.0.15/src‘,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

make[1]: *** [server.o] Error 1 make[1]: Leaving directory `/other/redis-6.0.15/src' make: *** [all] Error 2

  • 出现这种错误是由于gcc的版本过低

make[1]: Leaving directory `/other/redis-6.0.15/src’
make: *** [all] Error 2)

出现这种错误是由于gcc的版本过低

只需要升级一下gcc

yum -y install centos-release-scl 
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
scl enable devtoolset-9 bash
echo “source /opt/rh/devtoolset-9/enable” >> /etc/profile
gcc -v


这篇关于如果Linux安装Redis编译make[1]: *** [server.o] Error 1 make[1]: Leaving directory `/other/redis-6.0.15/src‘的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程