你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu 12.04安装带调试功能的Bochs

[日期:2012-10-30] 来源:Linux社区  作者:s_jobs [字体: ]

最近想看下于渊的《一个操作系统的实现》,虚拟机新安装的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、

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款