歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 12.04安裝帶調試功能的Bochs

Ubuntu 12.04安裝帶調試功能的Bochs

日期:2017/2/28 15:29:47   编辑:Linux教程

最近想看下於淵的《一個操作系統的實現》,虛擬機新安裝的Ubuntu 12.04,按照書中的說明安裝Bochs,為了確保和書中保持一致,特地在Bochs官網下載的Bochs2.3.5的版本。

帶調試功能的bochs安裝

sudo apt-get install build-essential 安裝編譯環境

tar vxzf bochs-2.3.5

cd bochs-2.3.5

./configure --enable-debugger --enable-disasm

make

sudo make install

說明,在./configure 那步開始報錯

1、configure: error: C++ preprocessor "/lib/cpp" fails sanity check

解決方法:

To solve the error de>C++ preprocessor "/lib/cpp" fails sanity checkde> while compiling Subversion, you need to download GCC, CPP and G++ by installing the following packages

gcc cpp g++

but that is for other Linux distribution system, my is Ubuntu, so we should install the needed libs

sudo apt-get install gcc cpp g++

this will download and install the essential lib that is build related, such as gcc g++

2、

解決方法:配置的時候加上--with-nogui參數,./configure --with-nogui;或者apt-get install xorg-dev

apt-get報錯的可以使用sudo aptitude install xorg-dev

3、

Copyright © Linux教程網 All Rights Reserved