红联Linux门户
Linux帮助

Ubuntu编译bochs2.3.5

发布时间:2015-04-24 10:46:26来源:linux网站作者:tigerlau225

在Windows下作用bochsdbg习惯了,在Ubuntu下,发现bochs包里竟然没有bochsdbg,要自己编译:

$ apt-get source bochs

$ cd bochs-2.3.7

$ ./configure --enable-debugger --enable-disasm --prefix=/usr

$ make

$ sudo cp bochs /usr/bin/bochsdbg


编译错误解决办法:

错误一:ISO C++ forbids declaration of ‘hash_map’ with no type

修改:加入hash_map的命名空间,修改bx_debug/symbols.cc

#include <ext/hash_map>

using namespace __gnu_cxx;

错误二:没有找到yacc命令

修改:安装yacc包

sudo apt-get install bison++