Pintos安装问题

duuuuu17 / 2023-08-23 / 原文

正常步骤

qemu安装方法:https://blog.csdn.net/geeeeeker/article/details/108104466

standFord安装方法:

https://zhuanlan.zhihu.com/p/343328700

问题

make PintOS时发生错误

Unrecognized character \x16; marked by <-- HERE after if ($<-- HERE near column 7 at ./utils/pintos line 911.

说明版本太低,换个高低点的PintOS版本

stropts.h文件问题

错误显示:

squish-pty.c:10:10: fatal error: stropts.h: 没有那个文件或目录
10 | #include <stropts.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [<内置>:squish-pty.o] 错误 1

解决:

因为在老版本的Linux中自带stropts.h文件,新版本没有,此处建议是注释掉squish-pty.c里面第288~293行代码,这样后续不会再报出这个文件的错误。