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 編輯
- H( r6 v6 q' q: t; J
; {! T- o4 z$ p, E5 x1 x
假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出:
2 M- g- F; `5 Q
checking for C compiler ... not found
/ p; F4 |5 o- @0 Y' X" f- b
./configure: error: C compiler gcc is not found
configure: error: You need a C++ compiler for C++ support.
( l% t M2 C/ P0 W% ^
原因是系統未安裝 C compiler && C++ compiler
& T8 K2 H8 y0 o* I# t: m
Solution:
R; o( ? @/ L- g0 P, ~
yum install gcc (C compiler)
9 h* L/ C+ }3 f |- W- P! n. w
yum install gcc-c++ (C++ compiler)
2 u) i6 \+ m/ ` ^
- |8 b6 ? k6 ~7 U
2 |" _0 N4 i7 R+ y: B
搞定
1 ^: [! D& a4 M4 |. S* n7 Y
歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av.one/)
Powered by Discuz! X3.2