標題: 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 編輯 # R0 T; z$ l, P+ ?8 E) C
( s/ \; F0 B& `( U) f$ U假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出: 7 b2 v& j2 ^. f6 m8 ]checking for C compiler ... not found 1 @, y/ J- K# h4 r./configure: error: C compiler gcc is not foundconfigure: error: You need a C++ compiler for C++ support.9 u' G. `1 U0 r, I. P- ]
原因是系統未安裝 C compiler && C++ compiler- X' K# s. \5 I6 a3 V( R5 f
Solution: ! _9 n7 A0 A) T6 u9 d3 ryum install gcc (C compiler) 8 G' y. @. b9 Myum install gcc-c++ (C++ compiler)5 s) f: I8 g- F/ N' X
# @* X/ Y* T3 r+ O4 o