52AV手機A片王|52AV.ONE
標題:
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 編輯
& t0 M, Q# K- n: U: B9 P5 Q
$ }. x" }* g; f) h+ O( B5 M, `, _
假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出:
7 |7 T6 o0 B9 H, \
checking for C compiler ... not found
( g: D2 v' e1 l
./configure: error: C compiler gcc is not found
configure: error: You need a C++ compiler for C++ support.
R! L8 O. F& \. B
原因是系統未安裝 C compiler && C++ compiler
/ v$ [. o4 e. g& l+ [9 f8 h
Solution:
; [" I7 T. E' M8 l
yum install gcc (C compiler)
& R: v- ~, i/ \9 ~
yum install gcc-c++ (C++ compiler)
# c4 `6 z$ T; W+ T! ~( A4 ~8 [
; r2 w4 f8 u8 o T
+ G9 s, C; _! l9 e& Q& M$ b
搞定
/ y6 L1 _% m8 D7 j* J( N2 Y- u4 F- o
歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av.one/)
Powered by Discuz! X3.2