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 編輯
. |1 |+ q/ h! t" [, t$ ~/ R! Y* C, \3 U1 ]8 U+ L. Z" b
假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出:1 j5 g/ y  U8 S! B% g! f% H
checking for C compiler ... not found
: n0 l) q- Y; K$ [2 \) X./configure: error: C compiler gcc is not found
configure: error: You need a C++ compiler for C++ support.3 k4 N/ p+ S$ ?; q; h
原因是系統未安裝 C compiler && C++ compiler
1 j& t" @# t6 k3 l0 b3 O" v+ U, wSolution:: E$ v% e: z! C& F& U
yum install gcc    (C compiler)

) I" p- J" R. y% {yum install gcc-c++    (C++ compiler)( b1 x7 o8 P( f7 _: S1 ?8 X

# G# e: K4 [6 M3 w1 ^4 z# _. e2 I
# q; \0 w! A$ s. ]) G& P搞定
6 f  A% R2 ~5 p6 v- o




歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av.one/) Powered by Discuz! X3.2