make: as86:命令未找到
缺少32位彙編器as86,去RPM搜索bin86 用rpm安裝:
rpm -ivh bin86-0.16.21-2.1.x86_64.rpm
RPM搜索網站:http://rpmfind.net/linux/RPM/index.html
/usr/include/gnu/stubs.h:7:27: 致命錯誤:gnu/stubs-32.h:沒有那個文件或目錄
安裝32位glibc-devel:
yum install glibc-devel.i686
安裝32位libstdc+±devel:
yum install libstdc++-devel.i686
之後返回主目錄用
make all
成功編譯內核,產生Image文件
執行run命令時出現問題:
oslab/bochs/bochs-gdb: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory
安裝32位libSM:
yum install libSM.i686
又出現問題:
oslab/bochs/bochs-gdb: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
oslab/bochs/bochs-gdb: error while loading shared libraries: libXpm.so.4: cannot open shared object file: No such file or directory
安裝32位libX11和libXpm:
yum install libX11-devel.i686
yum install libXpm-devel.i686
之後再執行run成功出現Bochs窗口: