2010-09-16 32 views
0
編譯NCURSES SRC

我試圖編譯ncurses的5.7從源代碼和運行./configure我收到以下錯誤後:在HPUX

configure: error: Your compiler does not appear to recognize prototypes. 
You have the following choices: 
     a. adjust your compiler options 
     b. get an up-to-date compiler 
     c. use a wrapper such as unproto 

我該如何解決這個問題?

+1

如何遵循configure給出的建議?在系統上安裝了gcc的 – Hasturkun 2010-09-16 15:05:41

回答

0

談到在配置文件以下行工作。

 
export CC="cc" 

Here得到了答案。

+0

如果這是你的問題,你應該運行./configure CC = gcc – Hasturkun 2010-09-16 16:16:05

+0

我這樣做了,但配置是基於if [「'uname -s'」=「HP-UX」]條件再次設置變量,因此I已將該行註釋掉,因此無法重新設置該變量。 – Ibrahim 2010-09-16 16:20:57

0

由於配置輸出暗示,您應該安裝gcc的HPUX版本或使用unproto作爲一個包裝

+0

。導出CC = gcc不起作用,所以我檢查了配置,並且有導致此問題的以下行。 export CC="cc"。所以在對該行進行註釋之後,configure腳本將成功運行。 – Ibrahim 2010-09-16 15:50:08

相關問題