Keepalived 实现 Redis AutoFailover (RedisHA)3

2022-06-26 20:05:36 浏览数 (1)

make3: gcc: Command not found 此问题是没有安装 gcc 导致的

解决办法安装 gcc

root@temp redis-3.0.4# rpm -qa | grep gcc

libgcc-4.4.7-11.el6.x86_64

root@temp redis-3.0.4# yum -y install gcc

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process

Repository base is listed more than once in the configuration

Determining fastest mirrors

  • extras: mirrors.opencas.cn
  • updates: mirror.bit.edu.cn base | 4.0 kB 00:00 ... extras | 3.4 kB 00:00undefinedextras/primary_db | 32 kB 00:00undefinedpercona-release-noarch | 951 B 00:00undefinedpercona-release-noarch/primary | 5.0 kB 00:00undefinedpercona-release-noarch 33/33 percona-release-x86_64 | 951 B 00:00undefinedpercona-release-x86_64/primary | 181 kB 00:01undefinedpercona-release-x86_64 611/611 updates | 3.4 kB 00:00undefinedupdates/primary_db | 1.9 MB 00:01undefinedResolving Dependencies --> Running transaction check ---> Package gcc.x86_64 0:4.4.7-11.el6 will be installed --> Processing Dependency: cpp = 4.4.7-11.el6 for package: gcc-4.4.7-11.el6.x86_64 ... ... ---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed ---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed --> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================

Package Arch Version Repository Size

======================================================================================================================================

Installing:

gcc x86_64 4.4.7-11.el6 base 10 M

Installing for dependencies:

cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k

cpp x86_64 4.4.7-11.el6 base 3.7 M

mpfr x86_64 2.4.1-6.el6 base 157 k

ppl x86_64 0.10.2-11.el6 base 1.3 M

Transaction Summary

======================================================================================================================================

Install 5 Package(s)

Total download size: 15 M

Installed size: 33 M

Downloading Packages:


Total 13 MB/s | 15 MB 00:01

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

...

...

Installed:

gcc.x86_64 0:4.4.7-11.el6

Dependency Installed:

cloog-ppl.x86_64 0:0.15.7-1.2.el6 cpp.x86_64 0:4.4.7-11.el6 mpfr.x86_64 0:2.4.1-6.el6 ppl.x86_64 0:0.10.2-11.el6

Complete!

root@temp redis-3.0.4#

0 人点赞