1. 程式人生 > >解決configure: error: C++ compiler cannot create executables問題

解決configure: error: C++ compiler cannot create executables問題

./configure時報錯:configure: error: C++ compiler cannot create executables 。哎,今天重灌測試伺服器上的系統,設定好IP可以遠端訪問時就回來安裝軟體,在搭建PHP+Nginx環境時倒出現了問題。

問題出現在了安裝libmcrypt元件包上了,當我./configure時報錯:configure: error: C++ compiler cannot create executables 。後來查了一下相關資料後才發現是gcc的元件沒有裝全,我之前安裝gcc時是通知yum方式:

yum install gcc gcc++ 

呵呵,這樣的話還是有元件沒有安裝完整的

。再執行一下這個命令就可以解決問題。

yum install gcc gcc-c++ gcc-g77 


這下應該沒有什麼問題了。