在 macOS 上安装 xv6

Installing xv6 on macOS

我正在尝试按照 this site 的说明在我的 macOS(版本 10.14.3)上安装 xv6 OS,仅使用所需的最新版本文件,当我进入 binutils 配置阶段时,我从我的终端获得:

Config.guess failed to determine the host type. You need to specify one. Usage: configure [OPTIONS] [HOST]

Options: [defaults in brackets]
--prefix=MYDIR install into MYDIR [/usr/local] --exec-prefix=MYDIR install host-dependent files into MYDIR[/usr/local]
--help print this message [normal config]
--build=BUILD configure for building on BUILD [BUILD=HOST]
--host=HOST configure for HOST [determined via config.guess]
--norecursion configure this directory only [recurse]
--program-prefix=FOO prepend FOO to installed program names [""]
--program-suffix=FOO append FOO to installed program names [""]
--program-transform-name=P transform installed names by sed pattern P [""]
--site=SITE configure with site-specific makefile for SITE
--srcdir=DIR find the sources in DIR [. or ..]
--target=TARGET configure for TARGET [TARGET=HOST]
--tmpdir=TMPDIR create temporary files in TMPDIR [/tmp]
--nfp configure for software floating point [hard float]
--with-FOO, --with-FOO=BAR package FOO is available (parameter BAR)
--without-FOO package FOO is NOT available
--enable-FOO, --enable-FOO=BAR include feature FOO (parameter BAR)
--disable-FOO do not include feature FOO

Where HOST and TARGET are something like "sparc-sunos", "mips-sgi-irix5", etc.

我能做些什么来解决它?有没有人有关于在 macOS 上安装 xv6 的更好且经过验证的说明? (我也试过this website当然没用。)

我需要做的就是:

  1. 安装xCode并同意使用条款。
  2. https://github.com/mit-pdos/xv6-public 下载 xv6。
  3. https://www.macports.org/ 安装 MacPorts。
  4. 打开一个终端 window,我在其中下载了 OS。
  5. sudo port install qemu.
  6. 安装Qemu
  7. sudo port install i386-elf-gcc gdb.
  8. 将现有的 Makefile 替换为 new one
  9. 为了运行,在终端写window make qemu clean.