红联Linux门户
Linux帮助

Ubuntu源码编译安装bochs 2.4.5

发布时间:2015-04-14 16:59:04来源:linux网站作者:linux人

成功在Ubuntu下源码编译安装bochs 2.4.5,主要是在配置Bochs的过程中出现了太多错误了。


如果出现

1、checking for C compiler default output file name… configure: error: C compiler cannot create executables

解决方法: apt-get install libc6-dev

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

解决方法:apt-get install build-essential

3、X windows gui was selected, but X windows libraries were not found.

解决方法:参照课程论坛上的解决方法,配置的时候加上--with-nogui(不过后来试了,改成apt-get install xorg-dev也行 )

4、make: ***[install_bin] 错误 1

解决方法:其实很简单,在命令前加上sudo就行,就是sudo make install


首先得到 bochs-2.4.5.tar.gz 安装包,同样可以从 www.bochs.sourceforget.net 上得到。

1. sudo apt-get install build-essential

2. sudo aptitude install xorg-dev

3. sudo aptitude install libgtk2.0-dev

4. tar vxzf bochs-2.4.5.tar.gz

5. cd bochs-2.4.5/

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

7. make

8. make install