標題: 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 編輯 + ]& k0 ~( K) S" [% K
8 W) b) Y1 ], t1 b0 i+ f
假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出:" K- O4 |# k" ?% H1 w2 Z# s
checking for C compiler ... not found 3 e2 f! Y# x9 K& \& v./configure: error: C compiler gcc is not foundconfigure: error: You need a C++ compiler for C++ support.4 B) C& `0 F, Y2 b A, p6 k
原因是系統未安裝 C compiler && C++ compiler 3 C; x# ^, n& h" u1 WSolution: 4 j9 d+ T6 y7 p A& ayum install gcc (C compiler)( n( o. \4 s; P
yum install gcc-c++ (C++ compiler) % s5 P% z& Q7 L& d# s ; |; I' D! D' n9 Y! y 2 b2 A) j, U& w) H9 P% P) `& a: ^8 ]搞定9 d {7 p* a/ b9 m+ ^5 v' ], W" d