【问题标题】:I have a error in makefile while running xv6 in ubuntu在 ubuntu 中运行 xv6 时,makefile 出现错误
【发布时间】:2021-08-22 14:49:18
【问题描述】:

我已经在 ubuntu 虚拟盒中克隆了 xv6-public 存储库,并且我已经使用了命令

$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)

任何人都可以为此提供任何解决方案

【问题讨论】:

  • 嗨,您的系统上安装了qemu 吗?

标签: xv6


【解决方案1】:

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

一个:

make clean

make

make qemu

两个:

sudo apt install qemu-system-x86

然后重复第一步。

三:

试试这个link

四个:

你也可以试试this

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-12-06
    • 2017-04-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多