ОШИБКА: не удалось найти рабочий исполняемый файл QEMU - PullRequest
0 голосов
/ 08 июня 2019

Я слежу за лекциями по разработке операционной системы MIT. Я установил Qemu и успешно запустил его, я могу использовать эти команды в этой папке "make clean", make "и" make qemu ".Есть также отдельная папка для Labs ... согласно инструкции мы должны использовать команду "make" в папке labs, но когда я использую команду make в папке lab, я получаю следующую ошибку

*** 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 conf/env.mk?
***
***
*** 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 conf/env.mk?
***
+ as kern/entry.S
+ cc kern/entrypgdir.c
+ cc kern/init.c
+ cc kern/console.c
+ cc kern/monitor.c
+ cc kern/printf.c
+ cc kern/kdebug.c
+ cc lib/printfmt.c
+ cc lib/readline.c
+ cc lib/string.c
+ ld obj/kern/kernel
+ as boot/boot.S
+ cc -Os boot/main.c
+ ld boot/boot
boot block is 390 bytes (max 510)
+ mk obj/kern/kernel.img

Я прочиталгде-то, что я должен установить путь в файле conf / env.mk Я нашел файл conf / env.mk, но я не уверен, как установить путь.содержимое файла conf / env.mk выглядит следующим образом:

# env.mk - configuration variables for the JOS lab

# '$(V)' controls whether the lab makefiles print verbose commands (the
# actual shell commands run by Make), as well as the "overview" commands
# (such as '+ cc lib/readline.c').
#
# For overview commands only, the line should read 'V = @'.
# For overview and verbose commands, the line should read 'V ='.
V = @

# If your system-standard GNU toolchain is ELF-compatible, then comment
# out the following line to use those tools (as opposed to the i386-jos-elf
# tools that the 6.828 make system looks for by default).
#
# GCCPREFIX=''

# If the makefile cannot find your QEMU binary, uncomment the
# following line and set it to the full path to QEMU.
#
# QEMU=

Я использую Ubuntu 16.04 Заранее спасибо !!

...