根据这个链接做安装前的配置
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的有效信息,直接将文件挂在这里了
Try this:
CFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" ./configure ...
If that still doesn’t work, try:
CC='clang -Wno-error=unused-command-line-argument-hard-error-in-future' ./configure ...
But having said that, if you want to install bochs, it is best to use Homebrew. After installing this, just use
brew install bochs
.I think there are some libraries missing, but I can’t tell you what they are.
According to the search, you can try to install it first:
brew install sdl
Then remember to run in your compilation directory:
make distclean
Then recompile and install.
Your gcc is actually clang. The configure script was given an argument it didn't support. Maybe it's a version issue. You can try
CFLAGS='-Wunused-command-line-argument-hard-error-in-future' ./configure
.Or try setting
CC
toclang
?Brew install gcc, set the environment variable CC to gcc and try. Brew has multiple gcc versions to choose from, 4.8 and 4.7. Just choose one. If you still get an error, continue posting the log