tid=21243& 本帖最後由 IT_man 於 2015-10-31 15:49 編輯 ) g+ G* G, k: _5 s
5 R; U$ t& l- P- x* D9 g
假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出:
P6 E) e1 o8 S! r2 ^) Q" A- J: U6 Dchecking for C compiler ... not found
9 C: j0 e7 \2 W1 J& D! n5 v./configure: error: C compiler gcc is not foundconfigure: error: You need a C++ compiler for C++ support.
7 _2 `0 [" m! @% N8 l& B* b; {原因是系統未安裝 C compiler && C++ compiler# P; }+ C' M) H. D( R+ n
Solution:
( O, p$ H: Z S. Q" f( syum install gcc (C compiler)0 }& D! N, l. P e% B9 Z
yum install gcc-c++ (C++ compiler)
3 Z/ ?) r+ ^3 |1 |6 V, E* L2 K2 R/ }' O5 i
) T8 p0 Y+ H& f2 e, _, m搞定
9 C' g9 }/ t. H |