Redisコンパイルエラー「make[3]:gcc:コマンドが見つかりません」解決例

16392 ワード

make[3]:gcc:コマンドが見つかりません
明らかに依存が欠けている!
解決策:rootユーザーでログインし、次のコマンドyum-y install gcc automake autoconf libtool makeを実行します.
成功すれば以下のプロセスが見られるはずです.
[root@local cdrom]# yum -y install gcc automake autoconf libtool make 
     :fastestmirror
      
Loading mirror speeds from cached hostfile
Centos-source-local                                                                                | 4.0 kB     00:00 ... 
  1:make-3.81-20.el6.x86_64           
      
-->       
---> Package autoconf.noarch 0:2.63-5.1.el6 will be   
---> Package automake.noarch 0:1.11.1-4.el6 will be   
---> Package gcc.x86_64 0:4.4.7-16.el6 will be   
-->        libgomp = 4.4.7-16.el6,      gcc-4.4.7-16.el6.x86_64   
-->        cpp = 4.4.7-16.el6,      gcc-4.4.7-16.el6.x86_64   
-->        cloog-ppl >= 0.15,      gcc-4.4.7-16.el6.x86_64   
-->        libgomp.so.1()(64bit),      gcc-4.4.7-16.el6.x86_64   
---> Package libtool.x86_64 0:2.2.6-15.5.el6 will be   
-->       
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be   
-->        libppl_c.so.2()(64bit),      cloog-ppl-0.15.7-1.2.el6.x86_64   
-->        libppl.so.7()(64bit),      cloog-ppl-0.15.7-1.2.el6.x86_64   
---> Package cpp.x86_64 0:4.4.7-16.el6 will be   
-->        libmpfr.so.1()(64bit),      cpp-4.4.7-16.el6.x86_64   
---> Package libgomp.x86_64 0:4.4.7-16.el6 will be   
-->       
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be   
---> Package ppl.x86_64 0:0.10.2-11.el6 will be   
-->         

      

==========================================================================================================================
                                                                                                              
==========================================================================================================================
    :
 autoconf                 noarch                2.63-5.1.el6                     Centos-source-local                781 k
 automake                 noarch                1.11.1-4.el6                     Centos-source-local                550 k
 gcc                      x86_64                4.4.7-16.el6                     Centos-source-local                 10 M
 libtool                  x86_64                2.2.6-15.5.el6                   Centos-source-local                564 k
      :
 cloog-ppl                x86_64                0.15.7-1.2.el6                   Centos-source-local                 93 k
 cpp                      x86_64                4.4.7-16.el6                     Centos-source-local                3.7 M
 libgomp                  x86_64                4.4.7-16.el6                     Centos-source-local                134 k
 mpfr                     x86_64                2.4.1-6.el6                      Centos-source-local                157 k
 ppl                      x86_64                0.10.2-11.el6                    Centos-source-local                1.3 M

    
==========================================================================================================================
Install       9 Package(s)

    :17 M
Installed size: 39 M
     :
--------------------------------------------------------------------------------------------------------------------------
                                                                                         40 MB/s |  17 MB     00:00     
   rpm_check_debug 
      
      
    
         : autoconf-2.63-5.1.el6.noarch                                                                           1/9 
         : automake-1.11.1-4.el6.noarch                                                                           2/9 
         : ppl-0.10.2-11.el6.x86_64                                                                               3/9 
         : cloog-ppl-0.15.7-1.2.el6.x86_64                                                                        4/9 
         : mpfr-2.4.1-6.el6.x86_64                                                                                5/9 
         : cpp-4.4.7-16.el6.x86_64                                                                                6/9 
         : libgomp-4.4.7-16.el6.x86_64                                                                            7/9 
         : gcc-4.4.7-16.el6.x86_64                                                                                8/9 
         : libtool-2.2.6-15.5.el6.x86_64                                                                          9/9 
  Verifying  : libgomp-4.4.7-16.el6.x86_64                                                                            1/9 
  Verifying  : gcc-4.4.7-16.el6.x86_64                                                                                2/9 
  Verifying  : mpfr-2.4.1-6.el6.x86_64                                                                                3/9 
  Verifying  : autoconf-2.63-5.1.el6.noarch                                                                           4/9 
  Verifying  : cpp-4.4.7-16.el6.x86_64                                                                                5/9 
  Verifying  : libtool-2.2.6-15.5.el6.x86_64                                                                          6/9 
  Verifying  : ppl-0.10.2-11.el6.x86_64                                                                               7/9 
  Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                                                                        8/9 
  Verifying  : automake-1.11.1-4.el6.noarch                                                                           9/9 

   :
  autoconf.noarch 0:2.63-5.1.el6 automake.noarch 0:1.11.1-4.el6 gcc.x86_64 0:4.4.7-16.el6 libtool.x86_64 0:2.2.6-15.5.el6

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

  !

再度makeを実行してコンパイルすればよい.
Redisの起動
cd redis-stable/src
./redis-server 
./redis-cli 
127.0.0.1:6379> set isstech hadoop
OK
127.0.0.1:6379> get isstech
"hadoop"
127.0.0.1:6379> 

 
転載先:https://www.cnblogs.com/RHadoop-Hive/p/10149044.html