亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

OS X編譯bochs報錯 [configure: error: C compiler cannot create executables]

OS X編譯bochs報錯 [configure: error: C compiler cannot create executables]

楊__羊羊 2019-03-29 22:09:13
根據這個鏈接做安裝前的配置sh.conf.macosx后出現以下信息根據google到的信息,缺少commandlinetools,已經執行xcode-select--install并完成安裝。gcc版本不對?缺乏庫?checkingbuildsystemtype...x86_64-apple-darwin13.1.0checkinghostsystemtype...x86_64-apple-darwin13.1.0checkingtargetsystemtype...x86_64-apple-darwin13.1.0checkingifyouareconfiguringforanotherplatform...nocheckingforstandardCFLAGSonthisplatform...-fpascal-strings-fno-common-Wno-four-char-constants-Wno-unknown-pragmas-Dmacintoshcheckingforgcc...gcccheckingwhethertheCcompilerworks...noconfigure:error:in`/Users/myName/Desktop/bochs-2.6':configure:error:CcompilercannotcreateexecutablesSee`config.log'formoredetails不知如何提取config.log的有效信息,直接將文件掛在這里了
查看完整描述

2 回答

?
精慕HU

TA貢獻1845條經驗 獲得超8個贊

試試這個:CFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"./configure...
如果還是不行就試試:CC='clang-Wno-error=unused-command-line-argument-hard-error-in-future'./configure...
不過話說回來,如果你要裝bochs,最好用Homebrew,裝好這個之后用brewinstallbochs就行了。
                            
查看完整回答
反對 回復 2019-03-29
?
慕村9548890

TA貢獻1884條經驗 獲得超4個贊

我覺得是缺少一些以來庫,但我無法給出具體是哪些東西。
根據檢索,你可以先嘗試安裝:brewinstallsdl
然后記得在你的編譯目錄里運行:makedistclean
再重新編譯安裝。
                            
查看完整回答
反對 回復 2019-03-29
  • 2 回答
  • 0 關注
  • 407 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號