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

轉自:http://www.coderbolg.com/content/83.htmlhtml

 

啊……天啊,./configure時報錯:configure: error: C++ compiler cannot create executables 。哎,今天重裝測試服務器上的系統,設置好IP能夠遠程訪問時就回來安裝軟件,在搭建PHP+Nginx環境時倒出現了問題。c++

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

yum install gcc gcc++

呵呵,這樣的話仍是有組件沒有安裝完整的。再執行一下這個命令就能夠解決問題。測試

yum install gcc gcc-c++ gcc-g77


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

相關文章
相關標籤/搜索