根据这个链接做安装前的配置
sh .conf.macosx
后出现以下信息
根据google到的信息,缺少command line tools,已经执行xcode-select --install
并完成安装。
gcc版本不对? 缺乏库?
checking build system type... x86_64-apple-darwin13.1.0
checking host system type... x86_64-apple-darwin13.1.0
checking target system type... x86_64-apple-darwin13.1.0
checking if you are configuring for another platform... no
checking for standard CFLAGS on this platform... -fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/myName/Desktop/bochs-2.6':
configure: error: C compiler cannot create executables
See `config.log' for more details
不知如何提取config.log的有效信息,直接将文件挂在这里了
试试这个:
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,装好这个之后用
brew install bochs
就行了。我觉得是缺少一些以来库,但我无法给出具体是哪些东西。
根据检索,你可以先尝试安装:
brew install sdl
然后记得在你的编译目录里运行:
make distclean
再重新编译安装。
你的 gcc 实际上是 clang。configure 脚本给了一个它不支持的参数过去。可能是版本的问题。你可以试试
CFLAGS='-Wunused-command-line-argument-hard-error-in-future' ./configure
。或者把
CC
设置成clang
试试?brew安装gcc,设置环境变量CC为gcc试试。brew有多个gcc的版本可以选择,4.8,4.7,选择一个好了,如果还出错,继续贴log吧