標題: 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 編輯 % S$ {$ J7 \* Y% U7 q' A1 c- k! r2 `0 A
假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出: ' Q( G5 n T2 achecking for C compiler ... not found + @* ^2 T* e9 Z./configure: error: C compiler gcc is not foundconfigure: error: You need a C++ compiler for C++ support. 9 W' r K( C; V- L0 g/ o原因是系統未安裝 C compiler && C++ compiler 3 q0 w p" E5 h+ f4 f$ i' \8 zSolution: 5 u6 o+ P r: V+ |" p+ H) ?yum install gcc (C compiler) k& Z! L- i+ F* s S4 B/ jyum install gcc-c++ (C++ compiler) 4 {7 k' Z2 O* u6 L3 P1 ~ Y' ^+ @9 n9 ]6 t. h8 ]$ H. O