標題: use yum to install C compiler C++ compiler [打印本頁] 作者: IT_man 時間: 2015-10-31 15:25 標題: use yum to install C compiler C++ compiler 本帖最後由 IT_man 於 2015-10-31 15:49 編輯 * Q. r3 `9 I, a J - K Z; ?& ^! d6 l假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出: 7 {# r* y- W# W- ]( Y: Kchecking for C compiler ... not found& t6 A3 t' N2 G$ d; a
./configure: error: C compiler gcc is not foundconfigure: error: You need a C++ compiler for C++ support.6 [8 O- K7 i" ]. Y9 N! L
原因是系統未安裝 C compiler && C++ compiler& B% i: F9 }5 A C
Solution: # B6 N1 \1 a4 Fyum install gcc (C compiler) , N* U% b6 }8 syum install gcc-c++ (C++ compiler)# E8 b- B7 R$ b7 ~$ g
$ k+ q: V S# E6 ~ T9 z: \; n; a ' g6 W" R: Z+ e! J1 B! ?/ |7 z' N搞定 + M }( h' R$ D$ h