Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 在Snow Leopard中编译Unix版本6_Macos_Unix_Operating System - Fatal编程技术网

Macos 在Snow Leopard中编译Unix版本6

Macos 在Snow Leopard中编译Unix版本6,macos,unix,operating-system,Macos,Unix,Operating System,您好,我下载了unix版本6的souce,我想研究并测试它。我在MacBookPro上运行雪豹。 1) 有没有办法在mac中编译它。如果我使用make或gmake,我会得到以下错误 *** Error: Couldn't find an i386-*-elf version of GCC/binutils. *** Is the directory with i386-jos-elf-gcc in your PATH? *** If your i386-*-elf toolchain is in

您好,我下载了unix版本6的souce,我想研究并测试它。我在MacBookPro上运行雪豹。 1) 有没有办法在mac中编译它。如果我使用make或gmake,我会得到以下错误

*** Error: Couldn't find an i386-*-elf version of GCC/binutils.
*** Is the directory with i386-jos-elf-gcc in your PATH?
*** If your i386-*-elf toolchain is installed with a command
*** prefix other than 'i386-jos-elf-', set your GCCPREFIX
*** environment variable to that prefix and run 'make' again.
*** To turn off this error, run 'gmake GCCPREFIX= ...'.

2) 我还想在虚拟机上运行它,我的机器上安装了VMWare。我不知道怎么做。

您正在使用的构建系统似乎需要一个ELF工具链(Linux使用)

您可以尝试确定这是否可以更改,但由于您有VMWare,请尝试在虚拟化Linux下编译它(minimal Debian非常轻量级)。

您可以研究一下。它有几个看起来很有用的包,特别是“i386 elf binutils”。它安装在/opt/local/*中,因此您可能需要确保/opt/local/bin/位于您的路径中。(尽管我相信它在默认情况下会解决这个问题。)

编辑:或者不编辑。再多做一点调查,我想知道你是不是在找什么


再次编辑:更正了下载链接。对不起

gcc
binutils
下载tarball,展开它们,然后:

$ cd binutils-2.15
$ ./configure --target=i386-jos-elf
$ make
$ make install
$ cd ../gcc-3.4.1
$ ./configure --target=i386-jos-elf
$ make
$ make install
当然,您需要更新路径。(这些说明是我从学校得到的。)


您必须完成创建新虚拟机、格式化操作系统并将其安装到磁盘的过程。我使用VirtualBox取得了一些成功,但我没有使用VMWare的经验;您可以在Mac OS X上编译bournesh


siride:@Alan:好吧,考虑到它有多旧,我不认为它还可以编译。这就是为什么我认为OP可能意味着其他东西。我使用macports安装了i386 elf binutils,但它仍然给我带来了错误。***错误:找不到i386--elf版本的GCC/binutils。***路径中是否包含i386 jos elf gcc的目录?***如果i386--elf工具链安装的命令***前缀不是“i386 jos elf-”,请将GCCPREFIX***环境变量设置为该前缀,然后再次运行“make”。**要关闭此错误,请运行“gmake GCCPREFIX=…”。