tid=21243& 本帖最後由 IT_man 於 2015-10-31 15:49 編輯 " u4 t7 |, k: F/ N; f, h2 r5 {
) ^; ?) B5 Q {) L" R2 H) B
假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出:1 U0 P0 w% c+ X) t2 U; N, ?! J" i
checking for C compiler ... not found! c* M1 j: C, s! B& _5 _
./configure: error: C compiler gcc is not foundconfigure: error: You need a C++ compiler for C++ support.+ Z' g7 K& r3 e, W1 W/ y
原因是系統未安裝 C compiler && C++ compiler0 Q# z Z: `' | S2 x" K: N+ t
Solution:
" r/ m3 b$ n7 Dyum install gcc (C compiler)
9 m) t5 A* C1 I6 D& m8 _. Eyum install gcc-c++ (C++ compiler)' S" S3 `; {: [7 c3 `" J. X4 Y! r& y
' {5 p' e, b* v3 s+ `4 M; P
: {( Y2 @9 B) ~8 k k
搞定
5 o! ~5 U. R" c1 S$ v |