tid=21243& 本帖最後由 IT_man 於 2015-10-31 15:49 編輯 : u A7 X5 m7 p3 \( ~. W/ s9 u
, n" |! ?7 z+ t
假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出:" g0 R) ~( v5 S- E" p/ B
checking for C compiler ... not found7 N* b: @. ^ b4 F3 d+ a
./configure: error: C compiler gcc is not foundconfigure: error: You need a C++ compiler for C++ support.
0 V5 \0 \ C+ @8 J. t! i" O原因是系統未安裝 C compiler && C++ compiler" r) n6 R/ _; r# K
Solution:
' l; i/ C, o' j4 C( G$ }# l4 W6 Lyum install gcc (C compiler)2 p* }/ C5 B/ g8 E
yum install gcc-c++ (C++ compiler)+ K; J5 U, ~; O! ~2 K/ a
@1 U) O" X/ Z, T- [6 V, q+ A
# v5 n6 m b* d+ b搞定/ Y0 t5 L9 i6 @5 n2 b
|