我在makefile中有一个错误,而在ubuntu中运行xv6



我已经克隆了ubuntu虚拟机中的xv6公共存储库,并使用了以下命令

$sudo apt-get install qemu
$git clone https://github.com/mit-pdos/xv6-public.git
$cd xv6-public
$make
$make qemu-nox

当我运行make qemu-nox时,我得到如下错误

***
*** Error: Couldn't find a working QEMU executable.
*** Is the directory containing the qemu binary in your PATH
*** or have you tried setting the QEMU variable in Makefile?
***
nographic -drive file=fs.img,index=1,media=disk,format=raw -drive file=xv6.img,index=0,media=disk,format=raw -smp 2 -m 512 
make: nographic: Command not found
make: [Makefile:231: qemu-nox] Error 127 (ignored)

有谁能给出一个解决方案吗?

我从一个叫Amrollahi的人那里学到了这个解决方案。
尝试这些步骤,如果当前步骤有效,不要尝试其余步骤。

:

make clean

make

make qemu

二:

sudo apt install qemu-system-x86

然后重复第一步

三:

试试这个链接。

四:

你也可以试试这个

最新更新