標題: 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 編輯 ! |0 N& T1 {4 Z
3 F) X8 D) g. P& T. |
假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出:5 k# k1 z' O. L- j1 `; k* Z2 q
checking for C compiler ... not found3 a3 S0 s2 l. ?, M# T+ m
./configure: error: C compiler gcc is not foundconfigure: error: You need a C++ compiler for C++ support.8 @5 H6 y2 v( S" l
原因是系統未安裝 C compiler && C++ compiler 4 J% s) G; y8 H4 x, z hSolution: " L( _' Y) I* ~2 L; l9 H4 ]yum install gcc (C compiler)% i, ]! K T v
yum install gcc-c++ (C++ compiler); R V5 ~ w% k$ _# u
7 ~- A5 O& Q) |% R: Y! w) y7 G. M$ c" g0 E- a* F
搞定 7 I" q F# a0 X5 L m9 Z