tid=21243& 本帖最後由 IT_man 於 2015-10-31 15:49 編輯
?/ M3 t4 ^- v7 k: L/ H6 h' e2 z: k5 B# Y9 e) h
假如使用 源碼安裝套件時需用到 ./configure 組套,but 一開始便出現以下錯誤而跳出:% a. i% Z' A# h6 y7 S1 t# d' s
checking for C compiler ... not found
' ~/ S9 k0 c: @' ]8 H/ Q7 y./configure: error: C compiler gcc is not foundconfigure: error: You need a C++ compiler for C++ support.
# E' ?0 {3 t( @ T8 F! w: k, c原因是系統未安裝 C compiler && C++ compiler
" _5 ?6 q5 p: g5 E' NSolution:/ C, U4 d5 h6 W, w; u. |" T
yum install gcc (C compiler)
/ D2 w% `5 {8 f% Q4 u* Myum install gcc-c++ (C++ compiler) k8 Y0 M4 M, f, W3 b \9 r' y% o
8 K7 S7 e* j: ~$ r$ T+ Y8 A
; m* ?1 {! q7 r6 }: H) @% k搞定
& ^5 ]4 R! a3 C B5 y1 a |