CentOS编译Linux-0.11出现的问题

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窗口:
在这里插入图片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章