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 編輯
. n* b* \4 b0 B9 ^, J- A
' L9 O) D: m" C9 W) P: f4 p假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出:
8 Q. I. s/ m: M+ v: pchecking for C compiler ... not found/ j6 P+ w3 g0 W& Y" u
./configure: error: C compiler gcc is not found
configure: error: You need a C++ compiler for C++ support.% N- P3 k  _0 N! f
原因是系統未安裝 C compiler && C++ compiler) A/ n5 G8 F0 {0 K( c6 j
Solution:" q8 h' y! [/ ]. B8 R- ^3 X
yum install gcc    (C compiler)

7 B8 p2 B% f* E) h, `  `' cyum install gcc-c++    (C++ compiler)
, j2 {0 v0 R* e$ j9 C
* z0 q1 h3 q; j0 v* ^: `7 i# u
' b6 w7 v+ K5 }4 p( ~( n
搞定
: L% A4 Q4 |4 c: X1 P9 M




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